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:

WC2b15 File Corruption (1997) ConvertChars request (1999) Security Issues and WebCommerce Solution (1997) RE: [WebDNA] Use of MySQL with WebDNA (2010) Large databases in WebCat (1997) Document Contains No Data, Blank Pages with b4, b6 mac! (1999) Free WebDNA snippets (Extending WebCatalog) (1997) removelineitems (2000) Re:Review comparison by PC Magazine: Open for On-line Business (1997) showif and cart (1998) AJAX with WebDNA (2006) No luck with taxes (1997) ANSWER to: CC Merchant suggestions?? (1997) searches with dash, period etc. (2000) WebCat2b12 CGI Mac - [shownext] problem (1997) process SSI (1998) shipping costs (1999) WC2b15 - [HTMLx]...[/HTMLx] problems (1997) looping table rows (1999) SetMIMEHeader Behaviour (2000)