|
@@ -168,6 +168,15 @@ class Session implements \Serializable
|
|
$this->storage->regenerate();
|
|
$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
|
|
* Returns the session ID
|
|
*
|
|
*
|