Hello,
I am trying to set some session information in the user's cookies. When
the session is deemed expired (user logs out, session expiry recorded in
the database has passed, etc.) I set the desired cookie vars to empty
values, and set the expiry to "Now" per the recommendations under
<@PURGE> in the programmer's reference.
After doing this, the value becomes uncomparable. So when I go to check
for empty values in the cookie vars:
LEN(<@VAR cookie$some_var>) and LEN(<@VAR cookie$some_other_var)
they both pass, where before the cookie existed, they failed (as expected.)
Since they are set to empty values, I am puzzled at this behavior,
because even if they exist but are empty strings, LEN('') should still
evaluate to false.
Even more puzzling is that when I set the values to "null" and try to
catch them that way, they are still uncomparable:
<@VAR cookie$some_var> != 'null'
returns true, even though <@VAR cookie$some_var> is set to 'null'.
So because of this peculiar behavior, I am unable to distinguish these
zombie cookies from valid cookies. Is there something I'm not doing right?
Thanks,
-Ian
PS: Thanks for all the help lately. I know I've been posting a lot
recently, and you folks have been very helpful.
----------------------------------------
To unsubscribe from this list, please send an email to [email protected]
with "unsubscribe terascript-talk" in the body.