Re: [WebDNA] Cookie behavior
This WebDNA talk-list message is from 2010
It keeps the original formatting.
numero = 105720
interpreted = N
texte = --001636920b8b212cc2048ebc3ff6Content-Type: text/plain; charset=UTF-8Jonathan,Hi - the following works for me when setting a session (i.e. no expiresvalue) cookie:    [setcookie name=sessionId&value=[cart]&path=/&domain=[getmimeheadername=host]]Ken must be right about the path and domain values being optional - I havealways left them in though.In your original code you specify the domain as 'www.yourdomain.com' - is itpossible that your domain URL is 'http://yourdomain.com' though?   If sothen your code won't work - best to use '.yourdomain.com' so the cookie canbe accessed across all potential subdomains.Take care- Tom--001636920b8b212cc2048ebc3ff6Content-Type: text/html; charset=UTF-8Content-Transfer-Encoding: quoted-printableJonathan,
Hi - the following works for me when setting a= session (i.e. no expires value) cookie:
=C2=A0=C2==A0 =C2=A0[setcookie name=3DsessionId&value=3D[cart]&path=3D/&d=omain=3D[getmimeheader name=3Dhost]]
Ken must be right about the path and domain values bein=g optional - I have always left them in though. =C2=A0=C2=A0
=
In your original code you specify the domain as '
www.yourdomain.com' - is it possible tha=t your domain URL is '
http://yourdoma=in.com' though? =C2=A0 If so then your code won't work - best t=o use '.
yourdomain.com' so th=e cookie can be accessed across all potential subdomains.
Take care
- Tom
=
--001636920b8b212cc2048ebc3ff6--
Associated Messages, from the most recent to the oldest:
--001636920b8b212cc2048ebc3ff6Content-Type: text/plain; charset=UTF-8Jonathan,Hi - the following works for me when setting a session (i.e. no expiresvalue) cookie:    [setcookie name=sessionId&value=
[cart]&path=/&domain=[getmimeheadername=host]]Ken must be right about the path and domain values being optional - I havealways left them in though.In your original code you specify the domain as 'www.yourdomain.com' - is itpossible that your domain URL is 'http://yourdomain.com' though?   If sothen your code won't work - best to use '.yourdomain.com' so the cookie canbe accessed across all potential subdomains.Take care- Tom--001636920b8b212cc2048ebc3ff6Content-Type: text/html; charset=UTF-8Content-Transfer-Encoding: quoted-printableJonathan,
Hi - the following works for me when setting a= session (i.e. no expires value) cookie:
=C2=A0=C2==A0 =C2=A0[setcookie name=3DsessionId&value=3D
[cart]&path=3D/&d=omain=3D[getmimeheader name=3Dhost]]
Ken must be right about the path and domain values bein=g optional - I have always left them in though. =C2=A0=C2=A0
=
In your original code you specify the domain as '
www.yourdomain.com' - is it possible tha=t your domain URL is '
http://yourdoma=in.com' though? =C2=A0 If so then your code won't work - best t=o use '.
yourdomain.com' so th=e cookie can be accessed across all potential subdomains.
Take care
- Tom
=
--001636920b8b212cc2048ebc3ff6--
Tom Duke 
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:
 
I want my files to have an asp file extension (1999)
 
Multi shift click (1999)
 
carriage returns in data (1997)
 
Re:Emailer setup (1997)
 
Getting Emailer to send mail (1997)
 
Color options for items (1999)
 
Shownext! (1998)
 
 Web DNA... (2007)
 
Off Topic: MacOS X Server on iMac (2000)
 
 search between two dates (2003)
 
WebCatalog and WebMerchant reviewed by InfoWorld (1997)
 
Practice runs ? (1997)
 
Online reference (1997)
 
Delete tag (2000)
 
WebCat2 - [format thousands] (1997)
 
shownext (1997)
 
webcat (2000)
 
WebCatalog 3.0.8 Mac OS (2000)
 
where to put code (1998)
 
WebCat2 Append problem (B14Macacgi) (1997)