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:

totals (1997) [append] and SSL (1997) Odd [math] behaviour (2003) Unique SKU Numbers (2000) Webstar 1.3.1 PPC (1997) Hiding Email Addresses (2003) WebCatalog [FoundItems] Problem - LONG - (1997) WebCatalog NT beta 18 problem (1997) [WebDNA] s3cmd (2014) WebCat2b12--[searchstring] bug (1997) WebCat2 - storing unformatted date data? (1997) WebMerchant 1.6 and https (1997) Problems deleting when a search field is blank... (1998) Wanted: Broader string manipulation functions (1997) Cookies not setting on IE (2002) WC2b15 File Corruption (1997) Execute Applescript (1997) I give up!! (1997) Searching in multiple databases from a form (1999) [WebDNA] Pages dying (2008)