Re: [WebDNA] Cookie behavior

This WebDNA talk-list message is from

2010


It keeps the original formatting.
numero = 105720
interpreted = N
texte = --001636920b8b212cc2048ebc3ff6 Content-Type: text/plain; charset=UTF-8 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' so the cookie can be accessed across all potential subdomains. Take care - Tom --001636920b8b212cc2048ebc3ff6 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Jonathan,

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:

    
  1. Re: [WebDNA] Cookie behavior (Tom Duke 2010)
  2. Re: [WebDNA] Cookie behavior (Govinda 2010)
  3. Re: [WebDNA] Cookie behavior (Tom Duke 2010)
  4. Re: [WebDNA] Cookie behavior (Jonathan Young 2010)
  5. Re: [WebDNA] Cookie behavior (Govinda 2010)
  6. Re: [WebDNA] Cookie behavior (Tom Duke 2010)
  7. Re: [WebDNA] Cookie behavior (Jonathan Young 2010)
  8. Re: [WebDNA] Cookie behavior (Kenneth Grome 2010)
  9. Re: [WebDNA] Cookie behavior (Govinda 2010)
  10. Re: [WebDNA] Cookie behavior (Jonathan Young 2010)
  11. Re: [WebDNA] Cookie behavior (Jonathan Young 2010)
  12. Re: [WebDNA] Cookie behavior (Kenneth Grome 2010)
  13. [WebDNA] Cookie behavior (Jonathan Young 2010)
--001636920b8b212cc2048ebc3ff6 Content-Type: text/plain; charset=UTF-8 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' so the cookie can be accessed across all potential subdomains. Take care - Tom --001636920b8b212cc2048ebc3ff6 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Jonathan,

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:

Formvariable won't update (1999) BUG in [showif] using ^ (contains) (1997) WebCat2b14MacPlugIn - [include] doesn't hide the search string (1997) FW: WebCat Contest (1998) page not found redirect (1999) Problem with Formulas.db (1998) [Summary] re: Emailer setup (1997) setting taxable to true (1997) ShowNext (1997) TCP Connect for a newbie (2002) Price Change (2000) WebCat2: Found Items syntax, etc. (1997) billing system (2003) FAX orders (1996) Using Plug-In while running 1.6.1 (1997) Grouping search fields, etc. (1997) emailer (1997) IBM DB2 (2000) default value from Lookup (was Grant, please help me) (1997) SSL and reg web* (1997)