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:
[include ...] behavior (1997)
cart file creation (2003)
listfiles-looking for slick solution (1997)
how to post without certain data appearing in the html source (2001)
how to check for no value while using [URL] to prevent cr (1999)
[OT] Graphic Art Services (2004)
Protect tag for large groups? (1999)
cart converting to scientific notation format (2001)
RE: Web*SSL and WebCatalog (1997)
FREE Stuff .. (2003)
forms and variables (1998)
More on [purchase] (1998)
many-to-one problem (1998)
help! problem using [referrer] still in 2.01 (1997)
Replace context problem ... (1997)
OK, here goes... (1997)
WebCatalog-NT?'s (1996)
remotely add + sign (1997)
[IPAddress] and AutoProxy (1998)
Multiple Pulldowns (1997)