glennn.php Posted May 5, 2006 Share Posted May 5, 2006 i have this login script but the author provided no logout feature - i'd like to be able to kill the session without the user having to close his browser:[code]if (!$errortag){ session_register("CID"); $_SESSION["CID"] = $customerid; $CID = $customerid; $showtable = false;}[/code]can anyone help? have i provided enough info?I know this is simple - the reason i love these forums is that ya'll can't see me turn red in embarrassment at such times...thanks,g Quote Link to comment Share on other sites More sharing options...
glennn.php Posted May 5, 2006 Author Share Posted May 5, 2006 [!--quoteo(post=371447:date=May 4 2006, 11:40 PM:name=glennn.php)--][div class=\'quotetop\']QUOTE(glennn.php @ May 4 2006, 11:40 PM) [snapback]371447[/snapback][/div][div class=\'quotemain\'][!--quotec--]i have this login script but the author provided no logout feature - i'd like to be able to kill the session without the user having to close his browser:[code]if (!$errortag){ session_register("CID"); $_SESSION["CID"] = $customerid; $CID = $customerid; $showtable = false;}[/code]can anyone help? have i provided enough info?I know this is simple - the reason i love these forums is that ya'll can't see me turn red in embarrassment at such times...thanks,g[/quote]figured it out, thanks Quote Link to comment Share on other sites More sharing options...
ansarka Posted May 5, 2006 Share Posted May 5, 2006 [!--quoteo(post=371447:date=May 4 2006, 10:40 PM:name=glennn.php)--][div class=\'quotetop\']QUOTE(glennn.php @ May 4 2006, 10:40 PM) [snapback]371447[/snapback][/div][div class=\'quotemain\'][!--quotec--]i have this login script but the author provided no logout feature - i'd like to be able to kill the session without the user having to close his browser:[code]if (!$errortag){ session_register("CID"); $_SESSION["CID"] = $customerid; $CID = $customerid; $showtable = false;}[/code]can anyone help? have i provided enough info?I know this is simple - the reason i love these forums is that ya'll can't see me turn red in embarrassment at such times...thanks,g[/quote]if you want to kill all session varibles you can use session_destroy();If you want to kill only one variable you can usesession_unregister("CID"); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.