Weird Cookie
This WebDNA talk-list message is from 2007
It keeps the original formatting.
numero = 68858
interpreted = N
texte = I've been using the same setcookie code on my sites for many years and forsome reason, every now and again, the cookie code is ignored and users arenot able to log in to my sites. It's purely random and doesn't have anythingto do with browser settings. For instance, a few days ago I logged into asite 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. Ididn't touch the code or site at all in the past few days, so I startedtesting to see where the problem lay. Its a log in page with a username andpassword form. On submit it checks the name and password in a database andsets a cookie with the user's ID before redirecting to another page. I'vetested everything and can say that my problem is definitely with this lineof code:[setcookie name=nerconsecure&value=[userID]&expires=[format days_to_date %A,%d-%b-%Y][math]{[date]}+1[/math][/format] [mathtime]{[time]}+{05:00:00}[/math] GMT&path=/&domain=nercon.thinksite.com]Does anyone see anything wrong with this? I'm not ruling out that therecould be despite the fact I've used it for so long, but I don't understandwhy 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 Web Archive of this list is at: http://webdna.smithmicro.com/
Associated Messages, from the most recent to the oldest:
I've been using the same setcookie code on my sites for many years and forsome reason, every now and again, the cookie code is ignored and users arenot able to log in to my sites. It's purely random and doesn't have anythingto do with browser settings. For instance, a few days ago I logged into asite 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. Ididn't touch the code or site at all in the past few days, so I startedtesting to see where the problem lay. Its a log in page with a username andpassword form. On submit it checks the name and password in a database andsets a cookie with the user's ID before redirecting to another page. I'vetested everything and can say that my problem is definitely with this lineof code:[setcookie name=nerconsecure&value=[userID]&expires=[format days_to_date %A,%d-%b-%Y][math]{[date]}+1[/math][/format] [mathtime]{[time]}+{05:00:00}[/math] GMT&path=/&domain=nercon.thinksite.com]Does anyone see anything wrong with this? I'm not ruling out that therecould be despite the fact I've used it for so long, but I don't understandwhy 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 Web Archive of this list is at: http://webdna.smithmicro.com/
Eddie Z
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:
Execute Applescript (1997)
Wanted: Broader string manipulation functions (1997)
Searchable Talklist Archive (1998)
Kill the webcat process (2000)
BBEdit and WebCatalog 2.0? (1997)
Re WebDNA has reached it connection limit (2004)
Databases (2000)
international time (1997)
Integration with SQL (1997)
TeaRoom (1997)
New to WebCat, Help. (1998)
Re:no [search] with NT (1997)
Cobalt RaQ (2000)
[WebDNA] Protect TextArea and other Input-Fields with WebDNA - Something to talk about ;) (2009)
Secure server question (1997)
displaying New products (using [date]) (1997)
Grep and removing text (2002)
Installation webCatalog (French speakers please help) (1998)
problems with 2 tags (1997)
Unable to view next 101-200 (1997)