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:
[referrer] tag (1997)
Location of Webcat site in folder hierarchy (1997)
Running 2 two WebCatalog.acgi's (1996)
target=_blank and form variables (1997)
browser info.txt and SSL (1997)
Emailer setup (1997)
[ShowNext] (1997)
Bcc in sendmail tag (2000)
[quantity] solved (1997)
Initiating NewCart (1997)
NT considerations (1997)
textA (1998)
WCS Newbie question (1997)
using listfiles to build a database? more (2000)
Banner DNA (1997)
Date problems-more (1997)
NT BETA BUG???? (1997)
Setting up WebCatalog with Retail Pro data (1996)
WebDNA Quick Reference (Reserved Words) (2000)
Navigator 4.01 (1997)