adds migrate() to Session
This migrates the session to a new session id while not deleting the actual session attributes.
This commit is contained in:
parent
0144dd86da
commit
6432dea07c
@ -168,6 +168,15 @@ class Session implements \Serializable
|
||||
$this->storage->regenerate();
|
||||
}
|
||||
|
||||
/**
|
||||
* Migrates the current session to a new session id while maintaining all
|
||||
* session attributes.
|
||||
*/
|
||||
public function migrate()
|
||||
{
|
||||
$this->storage->regenerate();
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the session ID
|
||||
*
|
||||
|
Reference in New Issue
Block a user