Re: [WebDNA] Cookie behavior
This WebDNA talk-list message is from 2010
It keeps the original formatting.
numero = 105721
interpreted = N
texte = --Apple-Mail-1--410552895Content-Type: text/plain;charset=US-ASCII;format=flowed;delsp=yesContent-Transfer-Encoding: 7bitsee below> Jonathan,>> Hi - the following works for me when setting a session (i.e. no > expires value) cookie:>> [setcookie name=sessionId&value=[cart]&path=/ > &domain=[getmimeheader name=host]]>> Ken must be right about the path and domain values being optional - > I have always left them in though.>> In your original code you specify the domain as 'www.yourdomain.com' > - is it possible that your domain URL is 'http://yourdomain.com' > though? If so then your code won't> work - best to use '.yourdomain.com'minus the first dot? ^^^^^^> so the cookie can be accessed across all potential subdomains.>> Take care> - Tom>>>>------------Govindagovinda.webdnatalk@gmail.com--Apple-Mail-1--410552895Content-Type: text/html;charset=US-ASCIIContent-Transfer-Encoding: quoted-printable
see =below
Jonathan,
Hi - the following works for =me when setting a session (i.e. no expires value) =cookie:
[setcookie =name=3DsessionId&value=3D[cart]&path=3D/&domain=3D[getmimehead=er name=3Dhost]]
Ken must be right about the =path and domain values being optional - I have always left them in =though.
=
minus the first dot? ^^^^^^
so the cookie can be accessed across all potential =subdomains.
Take care
- =Tom
=
=--Apple-Mail-1--410552895--
Associated Messages, from the most recent to the oldest:
--Apple-Mail-1--410552895Content-Type: text/plain;charset=US-ASCII;format=flowed;delsp=yesContent-Transfer-Encoding: 7bitsee below> Jonathan,>> Hi - the following works for me when setting a session (i.e. no > expires value) cookie:>> [setcookie name=sessionId&value=
[cart]&path=/ > &domain=[getmimeheader name=host]]>> Ken must be right about the path and domain values being optional - > I have always left them in though.>> In your original code you specify the domain as 'www.yourdomain.com' > - is it possible that your domain URL is 'http://yourdomain.com' > though? If so then your code won't> work - best to use '.yourdomain.com'minus the first dot? ^^^^^^> so the cookie can be accessed across all potential subdomains.>> Take care> - Tom>>>>------------Govindagovinda.webdnatalk@gmail.com--Apple-Mail-1--410552895Content-Type: text/html;charset=US-ASCIIContent-Transfer-Encoding: quoted-printable
see =below
Jonathan,
Hi - the following works for =me when setting a session (i.e. no expires value) =cookie:
[setcookie =name=3DsessionId&value=3D
[cart]&path=3D/&domain=3D[getmimehead=er name=3Dhost]]
Ken must be right about the =path and domain values being optional - I have always left them in =though.
=
minus the first dot? ^^^^^^
so the cookie can be accessed across all potential =subdomains.
Take care
- =Tom
=
=--Apple-Mail-1--410552895--
Govinda
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:
Active Server Code... (1998)
Interesting speed comparison .. (2003)
Add a field to the error log? (1997)
WebCat2: Items xx to xx shown, etc. (1997)
local IIS setup (2004)
Configuring E-mail (1997)
WebCatalog2 Feature Feedback (1996)
Another question about credit cards (1997)
WC2b15 - [HTMLx]...[/HTMLx] problems SOLVED! (1997)
Question from a Neebie (2000)
Viewing old carts (was FEW QUESTIONS) (1997)
[cart] not being interpreted inside [founditems] (1997)
can WC render sites out? (1997)
Hard Questions ? (1997)
Plugin or CGI or both (1997)
Help!!!! (1997)
ShoppingCart removal (2002)
WebDNA Solutions ... sorry! (1997)
Display [price] in banner ad (1998)
webcat- multiple selection in input field (1997)