Re: Weird Cookie Problem Part 2
This WebDNA talk-list message is from 2007
It keeps the original formatting.
numero = 68860
interpreted = N
texte = Sounds like a time thing, your cookie is set to GMT, is your server on another time zone?Make an adjustment and you may solve your problem.On 23 Apr 2007, at 3:11 PM, Eddie Z wrote:> As soon as my server hit midnight, this set cookie code posted in > my first> post started working again. It is supposed to set the expiration to > one day> ahead.>> This made me get look at my other setcookie code that I often use > that has> the same problems with:> [setcookie name=ezcookie&value=[usku]&expires=Tuesday, 29-Nov-2011 > 23:23:23> GMT&path=/&domain=ez1productions.com]>> There's no math involved with this one, but I've never paid > attention to> what time of the day people have had problems with this one.>> Again, all advice/help is appreciated.> Eddie>>> First Post:> I've been using the same setcookie code on my sites for many years > and for> some reason, every now and again, the cookie code is ignored and > users are> not able to log in to my sites. It's purely random and doesn't have > anything> to do with browser settings. For instance, a few days ago I logged > into a> site without a problem and today I tried to log in again and wasn't > able to.> I checked my cookies to make sure it was gone and restarted my > browser. I> didn't touch the code or site at all in the past few days, so I > started> testing to see where the problem lay. Its a log in page with a > username and> password form. On submit it checks the name and password in a > database and> sets a cookie with the user's ID before redirecting to another > page. I've> tested everything and can say that my problem is definitely with > this line> of code:>> [setcookie name=nerconsecure&value=[userID]&expires=[format > days_to_date %A,> %d-%b-%Y][math]{[date]}+1[/math][/format] [math> time]{[time]}+{05:00:00}[/math] GMT&path=/ > &domain=nercon.thinksite.com]>> Does anyone see anything wrong with this? I'm not ruling out that > there> could be despite the fact I've used it for so long, but I don't > understand> why it would work one day and not the next.>> Any help is appreciated.> Eddie>>> -------------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list
.> To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to digest@talk.smithmicro.com>> Web Archive of this list is at: http://webdna.smithmicro.com/-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
Associated Messages, from the most recent to the oldest:
Sounds like a time thing, your cookie is set to GMT, is your server on another time zone?Make an adjustment and you may solve your problem.On 23 Apr 2007, at 3:11 PM, Eddie Z wrote:> As soon as my server hit midnight, this set cookie code posted in > my first> post started working again. It is supposed to set the expiration to > one day> ahead.>> This made me get look at my other setcookie code that I often use > that has> the same problems with:> [setcookie name=ezcookie&value=[usku]&expires=Tuesday, 29-Nov-2011 > 23:23:23> GMT&path=/&domain=ez1productions.com]>> There's no math involved with this one, but I've never paid > attention to> what time of the day people have had problems with this one.>> Again, all advice/help is appreciated.> Eddie>>> First Post:> I've been using the same setcookie code on my sites for many years > and for> some reason, every now and again, the cookie code is ignored and > users are> not able to log in to my sites. It's purely random and doesn't have > anything> to do with browser settings. For instance, a few days ago I logged > into a> site without a problem and today I tried to log in again and wasn't > able to.> I checked my cookies to make sure it was gone and restarted my > browser. I> didn't touch the code or site at all in the past few days, so I > started> testing to see where the problem lay. Its a log in page with a > username and> password form. On submit it checks the name and password in a > database and> sets a cookie with the user's ID before redirecting to another > page. I've> tested everything and can say that my problem is definitely with > this line> of code:>> [setcookie name=nerconsecure&value=[userID]&expires=[format > days_to_date %A,> %d-%b-%Y][math]{[date]}+1[/math][/format] [math> time]{[time]}+{05:00:00}[/math] GMT&path=/ > &domain=nercon.thinksite.com]>> Does anyone see anything wrong with this? I'm not ruling out that > there> could be despite the fact I've used it for so long, but I don't > understand> why it would work one day and not the next.>> Any help is appreciated.> Eddie>>> -------------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list .> To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to digest@talk.smithmicro.com>> Web Archive of this list is at: http://webdna.smithmicro.com/-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
Stuart Tremain
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
RE: Formulas.db + Users.db (1997)
triggers.db (1999)
Emailed problem (2000)
Verisigns SDK (pay flo pro) (2002)
RE: Answer: WebDelivery downloads alias, not original ? (1997)
[WebDNA] Non-numbers entered into a field that asks for a number (2008)
ConverChars (1999)
Getting Emailer to send mail (1997)
RE: Problems with dbcatalog.exe (1997)
WebDNA 4.5 & iTools 7 (2003)
WebDNA-Talk Digests (1997)
I give up!! (1997)
CommandSecurity? (1997)
Why WebMerchant not working? (1999)
RE: [WebDNA] WebDNA 8.6 announced - New features (2018)
New Command prefs ... (1997)
A few questions. . . (1997)
[WebDNA] WebDNA 7 (2011)
[include ...] behavior (1997)
Not seeing cart info on Invoice.tmpl (was PROBLEM) (1997)