Re: [WebDNA] SETCOOKIE

This WebDNA talk-list message is from

2009


It keeps the original formatting.
numero = 101760
interpreted = N
texte = > if you do not specify an expires parameter, then the cookie becomes a > "session cookie," expiring automatically when the browser quits. by using this code [SETCOOKIE name=Visits&value=12&expires=&path=/ &domain=isd.smithmicro.com] you are setting an expiry of [blank] you need to change it to [SETCOOKIE name=Visits&value=12&path=/&domain=isd.smithmicro.com] and you should be good to go On a similar topic, it's the same with variables if you want to see if a variable is set, you don't do [showif [myvar]=][/showif] because if the variable isn't set it will be "[myvar]" and not "" so the showif statement would be as follows: [showif [myvar]=[raw][myvar][/raw]][/showif] or (better) [showif [url][myvar][/url]=[url][raw][myvar][/raw][/url]][/showif] as if [myvar] is set to "I love webdna!" this will translate in the first example to [showif I love webdna!=[raw][myvar][/raw]][/showif] and webdna translates the exclamation mark as an operator and "I love webdna" does not equal "=[raw][myvar][/raw]" Hope this helps TC On 5 Jan 2009, at 13:39, Lawrence wrote: > Hi > > I'm trying to set cookies but I have a problem with the expire date. > exemple : [SETCOOKIE name=Visits&value=12&expires=Wednesday, 09- > Nov-1999 > 23:12:40 GMT&path=/&domain=isd.smithmicro.com] > This run fine but the following won't. > [SETCOOKIE name=Visits&value=12&expires=&path=/ > &domain=isd.smithmicro.com] > [ if you do not specify an expires parameter, then the cookie > becomes a > "session cookie," expiring automatically when the browser quits.] > I want to have a "session cookie" what's wrong? > Is it a problem on my server? > > Thank's > Lawrence > > > > --------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us > old archives: http://dev.webdna.us/TalkListArchive/ Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] setcookie in IE11 (Thierry Almy 2014)
  2. Re: [WebDNA] setcookie in IE11 (Tom Duke 2014)
  3. Re: [WebDNA] setcookie in IE11 (Thierry Almy 2014)
  4. Re: [WebDNA] setcookie in IE11 (Stuart Tremain 2014)
  5. Re: [WebDNA] setcookie in IE11 (Tom Duke 2014)
  6. [WebDNA] setcookie in IE11 (Thierry Almy 2014)
  7. Re: [WebDNA] setcookie then redirect (Terry Wilson 2013)
  8. Re: [WebDNA] setcookie then redirect (Dan Strong 2013)
  9. Re: [WebDNA] setcookie then redirect (Donovan Brooke 2013)
  10. Re: [WebDNA] setcookie then redirect ("Psi Prime Inc, Matthew A Perosi " 2013)
  11. Re: [WebDNA] setcookie then redirect (Dan Strong 2013)
  12. [WebDNA] setcookie then redirect (Steve Graham 2013)
  13. Re: [WebDNA] SETCOOKIE (Lawrence 2009)
  14. Re: [WebDNA] SETCOOKIE (Toby Cox 2009)
  15. [WebDNA] SETCOOKIE (Lawrence 2009)
> if you do not specify an expires parameter, then the cookie becomes a > "session cookie," expiring automatically when the browser quits. by using this code [SETCOOKIE name=Visits&value=12&expires=&path=/ &domain=isd.smithmicro.com] you are setting an expiry of [blank] you need to change it to [SETCOOKIE name=Visits&value=12&path=/&domain=isd.smithmicro.com] and you should be good to go On a similar topic, it's the same with variables if you want to see if a variable is set, you don't do [showif [myvar]=][/showif] because if the variable isn't set it will be "[myvar]" and not "" so the showif statement would be as follows: [showif [myvar]=[raw][myvar][/raw]][/showif] or (better) [showif [url][myvar][/url]=[url][raw][myvar][/raw][/url]][/showif] as if [myvar] is set to "I love webdna!" this will translate in the first example to [showif I love webdna!=[raw][myvar][/raw]][/showif] and webdna translates the exclamation mark as an operator and "I love webdna" does not equal "=[raw][myvar][/raw]" Hope this helps TC On 5 Jan 2009, at 13:39, Lawrence wrote: > Hi > > I'm trying to set cookies but I have a problem with the expire date. > exemple : [SETCOOKIE name=Visits&value=12&expires=Wednesday, 09- > Nov-1999 > 23:12:40 GMT&path=/&domain=isd.smithmicro.com] > This run fine but the following won't. > [SETCOOKIE name=Visits&value=12&expires=&path=/ > &domain=isd.smithmicro.com] > [ if you do not specify an expires parameter, then the cookie > becomes a > "session cookie," expiring automatically when the browser quits.] > I want to have a "session cookie" what's wrong? > Is it a problem on my server? > > Thank's > Lawrence > > > > --------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us > old archives: http://dev.webdna.us/TalkListArchive/ Toby Cox

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:

So many lookers, hey smith micro (2003) There's no belittling going on here ... (2000) Redirect frame targets (1998) [WebDNA] search comparison: ends with (2016) Bug or syntax error on my part? (1997) Closing Databases (1998) PhotoMill -> PhotoMaster (1997) No luck with taxes (1997) Potential Conflicts? (1997) No luck with taxes (1997) WebCat2b15MacPlugin - showing [math] (1997) Search all Fields in a db (1997) Debug mode (1999) Solve the Problem, get the code! (2001) WC2b15 - [HTMLx]...[/HTMLx] problems (1997) [WebDNA] Middle Question (2015) Event ticketing code? (2000) Repeating Fields (1997) It just Does't add up!!! (1997) Some Questions (1997)