Well normally the cookie will reside in the cookie scope so do display the cookie you would do
<@VAR cookie$theCookie> To assign the cookie to another var, which I'm not quite sure why you want to do that, just do: <@ASSIGN NAME="theNewVar" VALUE="<@VAR cookie$theCookie>" SCOPE="local"> But the there are 2 issues here: 1- You don't need to really assign the cookie because you can access it as is 2- Your way of determining if someone has seen the records is a bit weak because if someone deletes their cookies or accesses your app from another machine, they get to see all the records over again. A perhaps better way of doing this is to put in a 'last log in' timestamp with the user record in the DB, if you have one, this way no matter where they access the system from, a quick assign of that date to a var on log in will allow you to have the last date this person accessed the system. Just my opinion. hope I didn't over step my bounds. R On Sunday, July 7, 2002, at 12:01 PM, Gene Wolf wrote: > OK, this is probably trivial but I can't figure it out. In one program I have set >a cookie containing the date a person last signed on, no problem there. What I want >to do now if read that cookie (still no problem) and assign it to a variable so it >can be compared to a timestamp from database records. This way I can determine what >records the user has not yet seen. > > How do I get the value from the recovered cookie assigned to a variable in the >same action? Can it be done? > > As Always, > Gene Wolf > > > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.373 / Virus Database: 208 - Release Date: 7/1/02 ________________________________________________________________________ TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED] with unsubscribe witango-talk in the message body
