hi i need to erase a certain session variable from a javascript function how can i do this can anybody help me?
+1
A:
I don't think this is possible. Sessions live on the server (not strictly true I know, but for the purposes of this answer, it's true enough).
I would write a script (PHP or somesuch) that unsets the session variable and fire off an ajax call to it.
gargantaun
2009-03-03 08:51:13
A:
You would need to use an Ajax call to the server to access/delete the session variable as sessions are controlled/handled only on the server side, not the client side.
Steerpike
2009-03-03 08:51:33