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 Link to comment https://forums.phpfreaks.com/topic/59378-solved-destroying-a-single-session/ 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(); Link to comment https://forums.phpfreaks.com/topic/59378-solved-destroying-a-single-session/#findComment-294976 Share on other sites More sharing options...
teng84 Posted July 11, 2007 Share Posted July 11, 2007 use unset Link to comment https://forums.phpfreaks.com/topic/59378-solved-destroying-a-single-session/#findComment-294977 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.