Re: Cookie problems using Mozilla and Camino browsers

This WebDNA talk-list message is from

2004


It keeps the original formatting.
numero = 55682
interpreted = N
texte = No it should not be www.minimac.dk. Anyways, it seems that using this method (below) works better for Mozilla like browsers and Explorer browsers. Not that I have found the perfect solution. The SetCookie tag in WebDNA just doesn't do the job well enough. [!] SAFARI BROWSER [/!] [showif [GETMIMEHEADER name=USER-AGENT]^Safari] [listmimeheaders name=host&exact=F] [Setcookie name=minimac&value=[cart]&expires=[format days_to_date %A, %d-%b-%Y][math]{[date]}+{01/00/0000}[/math][/format] [hideif [browsername]^MSIE][unurl]%0D%0A[/unurl][/hideif] [math time]{[time]}-{2:00:00}[/math] GMT&path=/&domain=[GETMIMEHEADER Host]] [/listmimeheaders] [/showif]  [!] NOT SAFARI BROWSER [/!] [hideif [GETMIMEHEADER name=USER-AGENT]^Safari] [ReturnRaw]HTTP/1.0 302 Found[unurl]%0D%0A[/unurl]Set-Cookie: minimac=[cart]; path=/; expires=[format days_to_date %A, %d-%b-%Y][math]{[date]}+{01/00/0000}[/math][/format] [hideif [browsername]^MSIE][unurl]%0D%0A[/unurl][/hideif] [math time]{[time]}-{2:00:00}[/math] GMT&path=/; domain=[GETMIMEHEADER Host][unurl]%0D%0A%0D%0A[/unurl][/ReturnRaw] [/hideif] On 24/1-2004, at 22.57, Tim Robinson wrote: > The domain value you have is ".minimac.dk". Should it be > "www.minimac.dk"? > >> From: Palle Bo Nielsen >> Reply-To: (WebDNA Talk) >> Date: Sat, 24 Jan 2004 21:33:22 +0100 >> To: (WebDNA Talk) >> Subject: Cookie problems using Mozilla and Camino browsers >> >> Hi all, >> >> Here we go again - problems with the Cookie function. Hope someone can >> help... >> >> When trying to set a cookie using the method below, most browsers >> behave "correct", well the way I hope it should work. The code below >> is >> requested from the URL (www.minimac.dk/profil/) which in most browser >> ends up with the value path being / >> >> But in Mozilla Firebird the Cookie path is being set to /profil/ and >> likewise in the Camino browser. I need for it to be set to a pure / >> (slash) and nothing else. >> >> When the Cookie path in the browser is set to /profil/ I can't >> [GETCOOKIE name=minimac] from other URLs like www.minimac.dk etc. >> >> Any tricks or tips to accomplish this? >> >> [Setcookie name=minimac&value=[cart]&expires=[format days_to_date %A, >> %d-%b-%Y][math]{[date]}+{01/00/0000}[/math][/format] [hideif >> [browsername]^MSIE][unurl]%0D%0A[/unurl][/hideif] [math >> time]{[time]}-{2:00:00}[/math] GMT&path=/&domain=.minimac.dk] >> Palle >> >> >> >> ------------------------------------------------------------- >> 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/ > > > ------------------------------------------------------------- > 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/ > > -- Venlig hilsen Palle B. Nielsen (PowerPalle) http://www.macnyt.dk/ ------------------------------------------------------------- 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: Cookie problems using Mozilla and Camino browsers ( "Sal" 2004)
  2. Re: Cookie problems using Mozilla and Camino browsers ( Palle Bo Nielsen 2004)
  3. Re: Cookie problems using Mozilla and Camino browsers ( Glenn Busbin 2004)
  4. Re: Cookie problems using Mozilla and Camino browsers ( Palle Bo Nielsen 2004)
  5. Re: Cookie problems using Mozilla and Camino browsers ( Tim Robinson 2004)
  6. Cookie problems using Mozilla and Camino browsers ( Palle Bo Nielsen 2004)
No it should not be www.minimac.dk. Anyways, it seems that using this method (below) works better for Mozilla like browsers and Explorer browsers. Not that I have found the perfect solution. The SetCookie tag in WebDNA just doesn't do the job well enough. [!] SAFARI BROWSER [/!] [showif [GETMIMEHEADER name=USER-AGENT]^Safari] [listmimeheaders name=host&exact=F] [Setcookie name=minimac&value=[cart]&expires=[format days_to_date %A, %d-%b-%Y][math]{[date]}+{01/00/0000}[/math][/format] [hideif [browsername]^MSIE][unurl]%0D%0A[/unurl][/hideif] [math time]{[time]}-{2:00:00}[/math] GMT&path=/&domain=[GETMIMEHEADER Host]] [/listmimeheaders] [/showif]  [!] NOT SAFARI BROWSER [/!] [hideif [GETMIMEHEADER name=USER-AGENT]^Safari] [returnraw]HTTP/1.0 302 Found[unurl]%0D%0A[/unurl]Set-Cookie: minimac=[cart]; path=/; expires=[format days_to_date %A, %d-%b-%Y][math]{[date]}+{01/00/0000}[/math][/format] [hideif [browsername]^MSIE][unurl]%0D%0A[/unurl][/hideif] [math time]{[time]}-{2:00:00}[/math] GMT&path=/; domain=[GETMIMEHEADER Host][unurl]%0D%0A%0D%0A[/unurl][/ReturnRaw] [/hideif] On 24/1-2004, at 22.57, Tim Robinson wrote: > The domain value you have is ".minimac.dk". Should it be > "www.minimac.dk"? > >> From: Palle Bo Nielsen >> Reply-To: (WebDNA Talk) >> Date: Sat, 24 Jan 2004 21:33:22 +0100 >> To: (WebDNA Talk) >> Subject: Cookie problems using Mozilla and Camino browsers >> >> Hi all, >> >> Here we go again - problems with the Cookie function. Hope someone can >> help... >> >> When trying to set a cookie using the method below, most browsers >> behave "correct", well the way I hope it should work. The code below >> is >> requested from the URL (www.minimac.dk/profil/) which in most browser >> ends up with the value path being / >> >> But in Mozilla Firebird the Cookie path is being set to /profil/ and >> likewise in the Camino browser. I need for it to be set to a pure / >> (slash) and nothing else. >> >> When the Cookie path in the browser is set to /profil/ I can't >> [GETCOOKIE name=minimac] from other URLs like www.minimac.dk etc. >> >> Any tricks or tips to accomplish this? >> >> [Setcookie name=minimac&value=[cart]&expires=[format days_to_date %A, >> %d-%b-%Y][math]{[date]}+{01/00/0000}[/math][/format] [hideif >> [browsername]^MSIE][unurl]%0D%0A[/unurl][/hideif] [math >> time]{[time]}-{2:00:00}[/math] GMT&path=/&domain=.minimac.dk] >> Palle >> >> >> >> ------------------------------------------------------------- >> 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/ > > > ------------------------------------------------------------- > 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/ > > -- Venlig hilsen Palle B. Nielsen (PowerPalle) http://www.macnyt.dk/ ------------------------------------------------------------- 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/ Palle Bo Nielsen

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-listserver stuff -WAS-webcat method for waiting (2000) [protect] locks out anyone (2003) WebCatalog for guestbook ? (1997) How do I get Google to crawl a WebCat site? (2003) Smith Micro - no competition (2000) Sorting by date (1997) Getting total number of items ordered (1997) JavaScript form question (2001) Bug or syntax error on my part? (1997) Ads.db (1997) serial number generation (1997) Email Formatting (1998) I don't think my install worked (2003) [LINEITEMS] (2000) question: search return in order (1997) Multi-processor Mac info ... (1997) WebCat2b12 - nesting [tags] (1997) email messages (1997) Math Problem - Format? (1997) Quit revisited (1997)