Yes <@VAR cookie$WebDude>
Yes you can leave it as "/" To eat the cookie (ie. remove it) Assign it to "" without a expiry Ben Johansen - http://www.pcforge.com Authorized Witango & MDaemon Reseller Available for Witango Developement -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Saturday, February 28, 2004 4:41 PM To: [EMAIL PROTECTED] Subject: RE: Witango-Talk: Ckkie Example Thanks Ben, Stefan and Robert. I think I get it. Had trouble fibding the properties for cookie and attributes. Question. Can I set the cookie to current domain? And if I set the expire to 1000 years that should be okay? And leave the server path to / ? How about when I need to retrieve the cookie. Is there anything special I need to do? Can I just use <@VAR UserName>? >The online docs have everything you need: > > >http://www.witango.com/developer/help.taf?_function=detail&snippetid=15 > >Including a detailed example: > ><@ASSIGN NAME=fred SCOPE=cookie VALUE="You were here." EXPIRES="<@TOGMT >TS=<@SECSTOTS SECS='<@CALC EXPR="<@TSTOSECS >TS=<@CURRENTTIMESTAMP>>+604800">'> FORMAT="datetime:http">"> > >Robert > >-----Original Message----- >From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] >Sent: Saturday, February 28, 2004 4:23 PM >To: [EMAIL PROTECTED] >Subject: Re: Witango-Talk: Ckkie Example > >Exuse me. There IS properties, but nothing that lets me set an >expiration. I need to do this by hand. > >>I have been through the documentation and I am still confused. I >>would like to set a variable (<@VAR username) That would not expire. >>I am building a form nd I would like to give the ability to the >>users to remember their login so when they come back, they will not >>need to log in again. The username is the only variable I need saved. >> >>Can a variable be saved indefinetly? Does someone have an example >>on how to do this? >> >><ASSIGN username "Fred" scope="cookie"> Then what? >> >>Sorry for the rudementary post. I have not used cookies before and >>feel I need an example to get started. Lot of stuff about http >>headers that I don't understand when I search the archive. >> >>Thanks >>-- >>______________________________________________________________________ _ >_ >>TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf > > >-- >_______________________________________________________________________ _ >TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf > >_______________________________________________________________________ _ >TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf -- ________________________________________________________________________ TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf ________________________________________________________________________ TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf