Re: [WebDNA] Cookie behavior

This WebDNA talk-list message is from

2010


It keeps the original formatting.
numero = 105722
interpreted = N
texte = --Apple-Mail-16--409924902 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Excellent. Thank you. Going to test this out.... Making progess. Thanks = to all for responses. Jon On Aug 26, 2010, at 12:11 PM, Tom Duke wrote: > Jonathan, >=20 > Hi - the following works for me when setting a session (i.e. no = expires value) cookie: >=20 > [setcookie = name=3DsessionId&value=3D[cart]&path=3D/&domain=3D[getmimeheader = name=3Dhost]] >=20 > Ken must be right about the path and domain values being optional - I = have always left them in though. =20 >=20 > 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. >=20 > Take care > - Tom >=20 >=20 >=20 >=20 --Apple-Mail-16--409924902 Content-Transfer-Encoding: 7bit Content-Type: text/html; charset=us-ascii Excellent. Thank you. Going to test this out.... Making progess. Thanks to all for responses.

Jon


On Aug 26, 2010, at 12:11 PM, Tom Duke wrote:

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





--Apple-Mail-16--409924902-- 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)
--Apple-Mail-16--409924902 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Excellent. Thank you. Going to test this out.... Making progess. Thanks = to all for responses. Jon On Aug 26, 2010, at 12:11 PM, Tom Duke wrote: > Jonathan, >=20 > Hi - the following works for me when setting a session (i.e. no = expires value) cookie: >=20 > [setcookie = name=3DsessionId&value=3D[cart]&path=3D/&domain=3D[getmimeheader = name=3Dhost]] >=20 > Ken must be right about the path and domain values being optional - I = have always left them in though. =20 >=20 > 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. >=20 > Take care > - Tom >=20 >=20 >=20 >=20 --Apple-Mail-16--409924902 Content-Transfer-Encoding: 7bit Content-Type: text/html; charset=us-ascii Excellent. Thank you. Going to test this out.... Making progess. Thanks to all for responses.

Jon


On Aug 26, 2010, at 12:11 PM, Tom Duke wrote:

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





--Apple-Mail-16--409924902-- Jonathan Young

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:

Random Order Sort? (2000) [convertChars] and HTML Tags (1997) Separate SSL Server (1997) RE: [WebDNA] [AddFields] Restrictions (2012) searchable list archive (1997) cart info (1998) taxTotal, grandTotal (1997) Bug or syntax error on my part? (1997) NT version (1997) Completed Orders (2006) WebCat2 - [format thousands] (1997) [ModDate] & [ModTime] ? (1997) pulldown menu differences (2005) Writing multiple data into one field (1998) Queertrons? (1997) searching multiple databases in single search (1997) Using WebMerchant Only? (1998) One more time (1997) little help (2001) Problems adding stuff to the shopping cart. (1997)