ukphoto Posted April 10, 2008 Share Posted April 10, 2008 I have tried all the commands session destroy/regenerate/unregister and each time I start the session with session_start it has the same value. I do not know where to look. Any help would be appreciated. Mike Link to comment https://forums.phpfreaks.com/topic/100557-solved-php-session-will-not-reset/ Share on other sites More sharing options...
doni49 Posted April 11, 2008 Share Posted April 11, 2008 Here's what I use--I found in a Larry Ulman book. $_SESSION = array(); session_destroy(): setcookie('PHPSESSID', '', time()-3600, '/', '', 0,0); Link to comment https://forums.phpfreaks.com/topic/100557-solved-php-session-will-not-reset/#findComment-514350 Share on other sites More sharing options...
ukphoto Posted April 11, 2008 Author Share Posted April 11, 2008 I have managed to overcome the problem using regenerate_session_id(true) Mike Link to comment https://forums.phpfreaks.com/topic/100557-solved-php-session-will-not-reset/#findComment-514604 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.