Re: Deleting Cookie Problems

This WebDNA talk-list message is from

2007


It keeps the original formatting.
numero = 68599
interpreted = N
texte = Eddie Z wrote: > So if the cookie names are identical but use different URLs (same domain > name but one with www. and one without) then I have a problem then? Hey Eddie, Kinda, there are security measures. if you started off with www.domain.com you are setting a limitation... so clients accessing the site with "domain.com" will not be able to access the www.domain.com cookie. Setcookie docs spell it out pretty well: http://webdna.smithmicro.com/ref/pages.html?context=AllTags.html#SetCookie The only way/s to "log out" of www.domain.com when using domain.com would be to utilize a {redirect-to-url-www.domain.com -> setcookietohistory --> then redirect-to-url-domain.com}... The way to accommodate users from both domains is to not originally put a limitation on the domain host. Both www.domain.com and domain.com can access a cookie where it was set with an original domain of "domain.com". In your situation, I think you would have to do some error code that, when a client can't log out when accessing the site via "domain.com", you would redirect them to www.domain.com, set that cookie to history, then redirect them back. Eventually everones www.domain.com cookies would be deleted that way. I did a little test page that simplifies cookie behavior that may help you.. You can look in your cookie manager while using the page to see proof of what is happening..: http://euca.us/admin/tests/cookieset.html?flag=T - Donovan -- =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o DONOVAN D. BROOKE EUCA Design Center <- Web Development (specializing in eCommerce),-> <- Desktop Publishing, Print Consulting, Labels -> <-Glass Products, off-hand Classes/studio rental-> PH:> (608) 835-2476 | Forum:> http://egg.bz/forum/ Web Sites:> http://www.euca.us & http://www.egg.bz =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o ------------------------------------------------------------- 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)
Eddie Z wrote: > So if the cookie names are identical but use different URLs (same domain > name but one with www. and one without) then I have a problem then? Hey Eddie, Kinda, there are security measures. if you started off with www.domain.com you are setting a limitation... so clients accessing the site with "domain.com" will not be able to access the www.domain.com cookie. Setcookie docs spell it out pretty well: http://webdna.smithmicro.com/ref/pages.html?context=AllTags.html#SetCookie The only way/s to "log out" of www.domain.com when using domain.com would be to utilize a {redirect-to-url-www.domain.com -> setcookietohistory --> then redirect-to-url-domain.com}... The way to accommodate users from both domains is to not originally put a limitation on the domain host. Both www.domain.com and domain.com can access a cookie where it was set with an original domain of "domain.com". In your situation, I think you would have to do some error code that, when a client can't log out when accessing the site via "domain.com", you would redirect them to www.domain.com, set that cookie to history, then redirect them back. Eventually everones www.domain.com cookies would be deleted that way. I did a little test page that simplifies cookie behavior that may help you.. You can look in your cookie manager while using the page to see proof of what is happening..: http://euca.us/admin/tests/cookieset.html?flag=T - Donovan -- =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o DONOVAN D. BROOKE EUCA Design Center <- Web Development (specializing in eCommerce),-> <- Desktop Publishing, Print Consulting, Labels -> <-Glass Products, off-hand Classes/studio rental-> PH:> (608) 835-2476 | Forum:> http://egg.bz/forum/ Web Sites:> http://www.euca.us & http://www.egg.bz =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o ------------------------------------------------------------- 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/ Donovan Brooke

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:

Version f1 status (1997) [WebDNA] Encryptng a password (2016) [WebDNA] An actual attempt to get WebDNA and MAMP Pro to work - (2018) [format xs] freeze (1997) [WebDNA] test (2011) WebCatalog security on NT (2000) authenticating a second user, the sequel (1997) How can I Add several Items into the cart at once? (1997) WebCat2.0 [format thousands .0f] no go (1997) Date Question (2002) WebDNA Codes in Secure Mode (1997) This is a Test, sorry (1999) How does 4DWebSTAR V's cache work? (2002) Help! WebCat2 bug (1997) Email within tmpl ? (1997) I'm having trouble using [url][interpret][math] together in lookup (1997) WebCat2: Master Counter snippet (1997) SearchTitle Question (1998) Avery Label PDF Template (2003) For those of you not on the WebCatalog Beta... (1997)