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:

Using Cookie for client specific info? (1997) [WebDNA] Sendmail Problems (2008) Grepping to remove text & code (2004) Dismissing dialogs (was 2.1b3 --> way slow) (1997) writing orders to a db (1997) [ShowNext] (1997) [subtotal] and others (1997) returning the missing value (1997) Narrowing NT Crashing error (2000) Off Topic: Frames Killer? (1998) Permissions with 3.06 Linux (2000) WCS Newbie question (1997) [math date] with non-US date format (2000) New WebCatalog site! (1997) Intermitent problem using [referrer] (1997) target=_blank and form variables (1997) [WebDNA] Internal [ipaddress] ? (2009) WebCatalog2 Feature Feedback (1996) help with duplicate records posted (1998) Shipping.db (1998)