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:

fileinfo syntax undocumented (2000) invoice.tpl (1998) [ot] Bluetooth Phones That Allow SSH (2004) japanese characters (1997) Ampersand (1997) Bug alert! (1997) Using Cookie for client specific info? (1997) Generating Report Totals (1997) Emailer or [sendmail] questions ... (1998) Re:Problem (1997) WebCatalog 2.0 & WebDNA docs in HTML ... (1997) Error:Too many nested [xxx] contexts (1997) [WebDNA] New Mountain Lion OSX Server (2013) Trigger alternatives please ... (2004) Re:no [search] with NT (1997) Before I Can Begin . . . (1998) Extra equals signs with IE? (More debugging questions...) (1997) return missing item (was:WebCat Sales) (1997) NTbeta18 corrupted? (1997) emailer (1997)