| Zeile 70... |
Zeile 70... |
| 70 |
* headers with the new ID. Symfony's HttpKernel offers a listener for this.
|
70 |
* headers with the new ID. Symfony's HttpKernel offers a listener for this.
|
| 71 |
* See Symfony\Component\HttpKernel\EventListener\SaveSessionListener.
|
71 |
* See Symfony\Component\HttpKernel\EventListener\SaveSessionListener.
|
| 72 |
* Otherwise session data could get lost again for concurrent requests with the
|
72 |
* Otherwise session data could get lost again for concurrent requests with the
|
| 73 |
* new ID. One result could be that you get logged out after just logging in.
|
73 |
* new ID. One result could be that you get logged out after just logging in.
|
| 74 |
*
|
74 |
*
|
| 75 |
* @param bool $destroy Destroy session when regenerating?
|
75 |
* @param bool $destroy Destroy session when regenerating?
|
| 76 |
* @param int $lifetime Sets the cookie lifetime for the session cookie. A null value
|
76 |
* @param int|null $lifetime Sets the cookie lifetime for the session cookie. A null value
|
| 77 |
* will leave the system settings unchanged, 0 sets the cookie
|
77 |
* will leave the system settings unchanged, 0 sets the cookie
|
| 78 |
* to expire with browser session. Time is in seconds, and is
|
78 |
* to expire with browser session. Time is in seconds, and is
|
| 79 |
* not a Unix timestamp.
|
79 |
* not a Unix timestamp.
|
| 80 |
*
|
80 |
*
|
| 81 |
* @throws \RuntimeException If an error occurs while regenerating this storage
|
81 |
* @throws \RuntimeException If an error occurs while regenerating this storage
|
| 82 |
*/
|
82 |
*/
|
| 83 |
public function regenerate(bool $destroy = false, int $lifetime = null): bool;
|
83 |
public function regenerate(bool $destroy = false, int $lifetime = null): bool;
|