jeff5656 Posted June 23, 2011 Share Posted June 23, 2011 when user logs in they get $this_session = session_id(); When they log out I do : session_destroy(); But when they log back in, the session_id() value is the same as the previous log-in! How do I reset this to be unique, and why doesn't session destroy do that? Link to comment https://forums.phpfreaks.com/topic/240259-cant-delete-session_id/ Share on other sites More sharing options...
dreamwest Posted June 23, 2011 Share Posted June 23, 2011 session_unset(); session_destroy(); Then on page reload if(session_id()){ session_regenerate_id(true); } Link to comment https://forums.phpfreaks.com/topic/240259-cant-delete-session_id/#findComment-1234086 Share on other sites More sharing options...
colap Posted June 24, 2011 Share Posted June 24, 2011 when user logs in they get $this_session = session_id(); When they log out I do : session_destroy(); But when they log back in, the session_id() value is the same as the previous log-in! How do I reset this to be unique, and why doesn't session destroy do that? More: http://php.net/manual/en/function.session-regenerate-id.php Link to comment https://forums.phpfreaks.com/topic/240259-cant-delete-session_id/#findComment-1234321 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.