Hi, If session destroys means where it will reflect.. How we can know it gets destroy.. How we can redirect to login page after session has been destroyed..
Thanks,
henry0
12:44 pm on Dec 28, 2007 (gmt 0)
Chramya, Welcome to WebmasterWorld! Read about it HERE [fr.php.net]
if you have OB on then you may use a HEADER [php.net]
eelixduppy
5:36 pm on Dec 28, 2007 (gmt 0)
You may also unset [php.net] individual session variables as needed. It would look something like this:
unset($_SESSION['var']);
And then as Henry has said, you could use header() to redirect the page:
unset() also allows for multiple var "unsetting" ex: you have a few sessions named $var1, $var2 etc.. You could unset them in one shot: unset($var1, $var2);