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:
2nd WebCatalog2 Feature Request (1996)
WC1.6 to WC2 date formatting (1997)
Webcatalog 4.01 and Webstar 4.2.1, is it OK? (2000)
Implementing Gift Certificates in online store (1998)
E 5 Mac Authentication trouble (2000)
OSX SubAdmin Templates (2000)
[ConvertChars] problem (1997)
Copyright ? (1997)
Separate SSL Server (1997)
Emailer port change (1997)
Javascript and Search Results (1998)
Feature Request: DB Field manipulation (1998)
[SHOWNEXT] Examples (1997)
Core Database integration (2001)
WebCatalog Upgrade Pricing? (1997)
Page authenticating when not supposed to (2003)
WebCat2b13MacPlugin - nested [xxx] contexts (1997)
Secure server question (1997)
WCf2 and nested tags (1997)
WebCatalog for guestbook ? (1997)