SamuelL Posted December 15, 2018 Share Posted December 15, 2018 Hey Larry, Just a quick question about regenerating session id. Why does the php manual set a time stamp on the old session but then quickly deletes it by unsetting the variable. I have attached a screen shot of the example from the php manual website. It is the second example from: http://php.net/manual/en/function.session-regenerate-id.php Link to comment Share on other sites More sharing options...
SamuelL Posted December 15, 2018 Author Share Posted December 15, 2018 There is a second function but I couldn't upload it. It is in the manual. The second function is for session_start() and also checks if $_SESSION['destroyed'] is set. Maybe its like a race between the two functions for $_SESSION['destroyed'], I am not really sure. Link to comment Share on other sites More sharing options...
SamuelL Posted December 16, 2018 Author Share Posted December 16, 2018 Larry, I have found the solution as to why it is. There are 2 different $_SESSION['destroyed'] variables that exist for 2 different sessions. Sorry for the bother... Link to comment Share on other sites More sharing options...
Larry Posted December 16, 2018 Share Posted December 16, 2018 No problem. Thanks for sharing what you learned! Link to comment Share on other sites More sharing options...
Recommended Posts