Re: [WebDNA] Cookie behavior

This WebDNA talk-list message is from

2010


It keeps the original formatting.
numero = 105721
interpreted = N
texte = --Apple-Mail-1--410552895 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit see below > 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' minus the first dot? ^^^^^^ > so the cookie can be accessed across all potential subdomains. > > Take care > - Tom > > > > ------------ Govinda govinda.webdnatalk@gmail.com --Apple-Mail-1--410552895 Content-Type: text/html; charset=US-ASCII Content-Transfer-Encoding: quoted-printable
see = below 

Jonathan,

Hi - the following works for = me when setting a session (i.e. no expires value) = cookie:

    [setcookie = name=3DsessionId&value=3D[cart]&path=3D/&domain=3D[getmimehead= er name=3Dhost]]

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'
=
minus the first dot? ^^^^^^

so the cookie can be accessed across all potential = subdomains.

Take care
- = Tom




=




= --Apple-Mail-1--410552895-- 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-1--410552895 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit see below > 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' minus the first dot? ^^^^^^ > so the cookie can be accessed across all potential subdomains. > > Take care > - Tom > > > > ------------ Govinda govinda.webdnatalk@gmail.com --Apple-Mail-1--410552895 Content-Type: text/html; charset=US-ASCII Content-Transfer-Encoding: quoted-printable
see = below 

Jonathan,

Hi - the following works for = me when setting a session (i.e. no expires value) = cookie:

    [setcookie = name=3DsessionId&value=3D[cart]&path=3D/&domain=3D[getmimehead= er name=3Dhost]]

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'
=
minus the first dot? ^^^^^^

so the cookie can be accessed across all potential = subdomains.

Take care
- = Tom




=




= --Apple-Mail-1--410552895-- Govinda

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:

Cart Template (1997) quotes and truncating? (1997) Rollovers (1999) Sendmail truncation in Eudora Clients (1998) Summing fields (1997) posts (1998) [ShowIf] a either fields are blank (1998) Tabled Discount (2003) [SearchString] usage (1997) Problems passing [SKU] with $Replace in 2.0 (1997) multiple search commands (1997) Examples of cross-selling with WebCatalog? (1998) WebCat2b14MacPlugIn - [include] doesn't hide the search string (1997) Error reading data -1 (1997) Summing fields (1997) all records returned. (1997) WebCommerce: Folder organization ? (1997) [WebDNA] Installation problem (Debian 6 64bit + Lighttpd) (2011) [format xs] freeze (1997) Running a store on BOTH http and https (1998)