Say the cookie contains the timestamp of your visit, so your script could say "You were last here at 5:45pm on August 8, 2011".
You need to read the old value and either store it to another variable or use it right away before somewhere in your script you change its value to be the current time stamp.
If you did it in reverse order, your script would always list your last visit at the time you hit it because you set it to now before reading it.
-Greg
Calling a cookie
Moderator: General Moderators
Re: Calling a cookie
Yeah, basically you will overwrite your existing variable stored in your cookie if you do it the wrong way around.
Best wishes
Best wishes