Re: Deleting Cookie Problems

This WebDNA talk-list message is from

2007


It keeps the original formatting.
numero = 68555
interpreted = N
texte = Thank for the reply, I do know how to delete a cookie though and you are correct about overwriting it to a date/time in the past. I split the delete cookie (setcookie to past date) into two files and it started working again. So is it not possible to have two set cookie commands on one page? Is there a way that I can pull the domain name out of the cookie so I know which delete cookie code to point them to? (Hi Pat) on 3/1/07 12:06 PM, Christophe Billiottet at chris@zarcrom.com wrote: > 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)
Thank for the reply, I do know how to delete a cookie though and you are correct about overwriting it to a date/time in the past. I split the delete cookie (setcookie to past date) into two files and it started working again. So is it not possible to have two set cookie commands on one page? Is there a way that I can pull the domain name out of the cookie so I know which delete cookie code to point them to? (Hi Pat) on 3/1/07 12:06 PM, Christophe Billiottet at chris@zarcrom.com wrote: > 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/ 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:

Wireless WebDNA available today! (2000) when is date system date or order date? (1997) auto adding SKUs w/DB helper (1998) Shipping Costs (1999) shipcost - cleaner with a table (1998) RE: Migrating to NT (1997) Ampersands in database fields? (1998) purchase.log file (1997) [math] variable question (1997) WebCatalog Plug-in for Webstar. (1997) AOL and webcat (1998) Help w/ Duplicating The General Store 5 times. (1997) remotely add + sign (1997) comma-delimited email (1998) [WebDNA] WebDNA receiving numerous signal SIGSEGV then crashing (2016) Separate SSL Server (1997) Cookie woes with Mac IE4 (1998) gateway application timeouts (1998) Me know logical no need (2002) NT Version on IIS 4.0 (1997)