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:

GuestBook example (1997) Interfacing WebMerchant to www.fedex.com (1997) ShowNext (1997) Mirroring WebCat Servers (2001) Summ=T Problem (1997) Setting up WebCatalog with Retail Pro data (1996) [WebDNA] User sessions - cookies only or cookies and a sessions.db? (2016) WebCat2b15MacPlugin - showing [math] (1997) restarting webcatalog (2002) MAC FINDER (2001) math on date? (1997) WebCatalog 4.0.1b1 is now available (2000) [sendmail] and [formvariables] (1997) [OT] Mac Browser Performance Tips (1999) Upcoming 2.1 Release and PCS Committment (1997) [Off] Netscape Display Problem (1998) Looking for 24x7 ISP for WebCatalog (1998) email program problem (1998) Grant, please help me ... (1997) Harvesting invalid email addresses from bounced emails??? (2000)