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 goOn a similar topic, it's the same with variablesif 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 helpsTCOn 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:
> 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 goOn a similar topic, it's the same with variablesif 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 helpsTCOn 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:
Webcatalog-firesite and [referrer] tag (1997)
New Server? (2006)
Date Formats (1997)
Re:no [search] with NT (1997)
searching with groups (1997)
Help Wanted - Stowe, Vermont (1999)
Webcatalog and foreign languages (1998)
TCPCONNECT (2004)
Can you do this??? and other stuff (1997)
searching multiple databases (1997)
Sendmail and SMTP AUTH (2005)
Triggers (2003)
dynamic PDF no longer working? (2004)
Template Cache problem, bombing WebSTAR problem (2000)
searching results (1999)
[WebDNA] Record click-thrus (2008)
E-Mail (1998)
[WriteFile] problems (1997)
AOL and webcat (1998)
label?! (2005)