how to unset all the session variables ?/
Posted: Wed Oct 29, 2008 4:55 am
i want to unset all the session variables for a certain code. then i want to destroy the session. how is it done??
my present code is given below
Now i want to unset all the variables in session before it gets destroyed. can anyone tell me how to do this??
my present code is given below
Code: Select all
unset($_COOKIE[session_id()]);
session_regenerate_id();
session_destroy();