Foser Posted July 11, 2007 Share Posted July 11, 2007 I would like to be able destroy only one session but the way i think it would be is: <?php session_start(); $_SESSION['user']; $_SESSION['mail']; destroy_session($_SESSION['mail']); ?> is it like this? how could i delete mail session without touching the user session. thanks Quote Link to comment Share on other sites More sharing options...
Yesideez Posted July 11, 2007 Share Posted July 11, 2007 Add this as well to be sure just before you destroy it: $_SESSION['mail']=array(); Quote Link to comment Share on other sites More sharing options...
teng84 Posted July 11, 2007 Share Posted July 11, 2007 use unset 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.