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:
BadSuffix with 2.1b3 cgi (1997)
Forms (1997)
Summing fields (1997)
Are [CART]'s always > Previous [CART]'s (2000)
Creating comums (1998)
Sendmail & Time Issue (2001)
Caching [include] files ... (1997)
WebCat2b15MacPlugin - showing [math] (1997)
indexing dates (1998)
Sorting Date (2004)
CORR: date format (2000)
practicing safe queries.. (2000)
shown next / show prev (1998)
insecure client not shown (1998)
Associative lookup style? + bit more (1997)
WebCat2b12 CGI Mac -- Problems propagating the cart through frames...still (1997)
Security Issues and WebCommerce Solution (1997)
[WebDNA] Hmmm ... (2008)
docs for WebCatalog2 (1997)
Append File help needed (2000)