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 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 Web Archive of this list is at: http://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Weird Cookie Problem - your answer ( Terry Wilson 2007)
  2. Re: Weird Cookie Problem - your answer ( Stuart Tremain 2007)
  3. Re: Weird Cookie Problem - your answer ( Eddie Z 2007)
  4. Re: Weird Cookie Problem - your answer ( Paul Willis 2007)
  5. Re: Weird Cookie Problem - your answer ( Eddie Z 2007)
  6. Re: Weird Cookie Problem - your answer ( Terry Wilson 2007)
  7. Re: Weird Cookie Problem - your answer ( Terry Wilson 2007)
  8. Re: Weird Cookie Problem Part 2 ( Eddie Z 2007)
  9. Re: Weird Cookie Problem Part 2 ( Donovan Brooke 2007)
  10. Re: Weird Cookie Problem Part 2 ( Eddie Z 2007)
  11. Re: Weird Cookie Problem Part 2 ( Donovan Brooke 2007)
  12. Re: Weird Cookie Problem Part 2 ( Eddie Z 2007)
  13. Re: Weird Cookie Problem Part 2 ( Stuart Tremain 2007)
  14. Re: Weird Cookie Problem Part 2 ( Donovan Brooke 2007)
  15. Re: Weird Cookie Problem Part 2 ( Stuart Tremain 2007)
  16. Weird Cookie Problem Part 2 ( Eddie Z 2007)
  17. Weird Cookie ( Eddie Z 2007)
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 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:

Ampersand Character (&) (1997) WebDNA-Talk Digest mode broken (1997) Using Cookie for client specific info? (1997) The word TYPE in search contexts and fields (1998) Fun with Dates - any progress? (1997) Feature: TCPconnect via SSL (1999) Server Freeze (1998) [WebDNA] Search question (2013) Cookies and webcat (1997) date tag not interpreted (2000) Undeclared variables (2004) [WebDNA] IP Address to country (2008) WC2b15 - [HTMLx]...[/HTMLx] problems (1997) [username][password] not showing up! HELP! (1999) PCS Emailer's role ? (1997) Google Web Accelerator (2005) [DOS]/DOS query perhaps OT (2003) Creating 404 Not Found pages (1999) can WC render sites out? (1997) [searchString] (1997)