Re: Deleting Cookie Problems

This WebDNA talk-list message is from

2007


It keeps the original formatting.
numero = 68539
interpreted = N
texte = I think you can "delete" a cookie overwriting it, with an expiration date setup to now. It works for us. [setcookie name=zarc&value=0000000000&expires=[date %A, %d-%b-%Y] [time %X]GMT&path=/] chris On Mar 1, 2007, at 13:10, Eddie Z wrote: > For the longest time I've been setting my cookie with a domain of > www.domainname.com and recently found out that people that were > trying to > log in as just domainname.com weren't getting in. I have since > changed my > code so domain=domainname.com (without the www.) so that the cookie > will be > set for any domainname.com address. > > My logoout code resets the cookie to a date in the past, thus > deleting the > cookie. I found that people who were already logged in with a > www.domainname.com cookie couldn't log out when I changed the code to > domainname.com, so I thought that adding two set cookie commands, > one for > www.domainname.com and one for domainname.com on the same logout > page would > work, but now I'm having people complain that they can't log out at > all, > despite the fact that I can't duplicate the problem. > > The code being used has been used effectively for 4 years, so I'm > thinking > that it could be the issue. Can I not have two set cookie commands > on one > page? Perhaps there's a better way to accomplish what I'm trying to > do. Any > ideas? > > > ------------------------------------------------------------- > 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:

    
  1. Re: Deleting Cookie Problems ( Eddie Z 2007)
  2. Re: Deleting Cookie Problems ( Donovan Brooke 2007)
  3. Re: Deleting Cookie Problems ( Donovan Brooke 2007)
  4. Re: Deleting Cookie Problems ( Eddie Z 2007)
  5. Re: Deleting Cookie Problems ( Donovan Brooke 2007)
  6. Re: Deleting Cookie Problems ( Eddie Z 2007)
  7. Re: Deleting Cookie Problems ( Chris 2007)
  8. Deleting Cookie Problems ( Eddie Z 2007)
I think you can "delete" a cookie overwriting it, with an expiration date setup to now. It works for us. [setcookie name=zarc&value=0000000000&expires=[date %A, %d-%b-%Y] [time %X]GMT&path=/] chris On Mar 1, 2007, at 13:10, Eddie Z wrote: > For the longest time I've been setting my cookie with a domain of > www.domainname.com and recently found out that people that were > trying to > log in as just domainname.com weren't getting in. I have since > changed my > code so domain=domainname.com (without the www.) so that the cookie > will be > set for any domainname.com address. > > My logoout code resets the cookie to a date in the past, thus > deleting the > cookie. I found that people who were already logged in with a > www.domainname.com cookie couldn't log out when I changed the code to > domainname.com, so I thought that adding two set cookie commands, > one for > www.domainname.com and one for domainname.com on the same logout > page would > work, but now I'm having people complain that they can't log out at > all, > despite the fact that I can't duplicate the problem. > > The code being used has been used effectively for 4 years, so I'm > thinking > that it could be the issue. Can I not have two set cookie commands > on one > page? Perhaps there's a better way to accomplish what I'm trying to > do. Any > ideas? > > > ------------------------------------------------------------- > 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/ Christophe Billiottet

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:

[OT] Imagemagick (2003) QuitFeedback & DBNotOpened errors (1997) New public beta available (1997) Access Denied! But why? (1997) Dummy Credit Card Number for debug? (1997) Searching with a form (2000) TCPConnect / Current Temperature (2004) OT: Google image search results (2004) Question about replacing words (1998) WCS Newbie question (1997) WEBCAT with SQL backend. Help please! (2000) carriage returns in data (1997) How to append text after the sign & (1997) Variables for chat (1997) creating a ShipCosts database (1997) Remove a Field from a DB (2007) Multi Actions (1999) Three new problems, maybe a fourth (1997) Calculating multiple shipping... (1997) More questions about serial number dishing (1997)