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:

This list needs a digest: rant, rave... (1997) Email within tmpl ? (1997) Mac v. NT (1998) WebCat editing, SiteGuard WAS:SiteAssociative lookup style? (1997) Total number (2004) [WebDNA] WebDNA Technical Change History (2019) How to delete all files in a folder? (2001) Email Not Being Sent (2004) CERT Advisory on malicious scripts (2000) Problems with WebDNA-Talk list (1998) Re[2]: 2nd WebCatalog2 Feature Request (1996) Caching [include] files ... (1997) text size limitation (1997) emailer (1997) [WebDNA] Need Rosetta to install on OS X? (2010) (thx) automating a POST (2002) off topic - dna snipets (1997) SKU (1997) [WebDNA] Ubuntu 14.04 & WebDNA (2017) IRC Channel (2003)