Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Restarting session after ID regeneration looses session #129
I found problem with restarting session after session ID was regenerated.
Steps To Reproduce
$session = new Session(); $session->start(); // Session ID is taken from cookie. $session->regenerateId(); // Session ID is changed. $session->close(); // Session with old ID is deleted, session with new ID is written. $session->start(); // Session ID is taken from cookie - PROBLEM // it is old session ID, not the regenerated one and all session data are lost