setting cookies

Post Reply
sabety
Posts: 76
Joined: Wed Dec 06, 2000 7:11 am

setting cookies

Post by sabety »

I'm setting a cookie like this:

<header COOKIE="MYSITE" VALUE=$user EXPIRES="+1 year">

and it is set succesfully

I later want to retrieve it like this:

<varinfo list COOKIE>
<getvar $ret>
<$user = $ret>

and it is not working. First time with cookies, having a bit of a time...
User avatar
John
Site Admin
Posts: 2597
Joined: Mon Apr 24, 2000 3:18 pm
Location: Cleveland, OH
Contact:

setting cookies

Post by John »

You should be able to retrieve it by looking at $MYSITE directly since that is the name of the cookie. Note that <varinfo> may return a list of cookies if more than one is set, which may be the problem.
John Turnbull
Thunderstone Software
sabety
Posts: 76
Joined: Wed Dec 06, 2000 7:11 am

setting cookies

Post by sabety »

I just replaced $ret with MYSITE and it is getting the right cookie!

Thanks!
Post Reply