diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2018-06-11 11:45:19 +0300 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2018-06-14 09:09:36 +0300 |
commit | 8c47a632e0afc5b38093818f70dcf4cdead42b4d (patch) | |
tree | b28f4dd055fae30ab2688f63ebe6eae00fa5f867 /lib/public/ISession.php | |
parent | 479e31997f0ecde8d3cf59cc54c5f8ac4b1f80d8 (diff) |
Allow updating the token on session regeneration
Sometimes when we force a session regeneration we want to update the
current token for this session.
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib/public/ISession.php')
-rw-r--r-- | lib/public/ISession.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/public/ISession.php b/lib/public/ISession.php index 411356b8dcc..bbf36c86520 100644 --- a/lib/public/ISession.php +++ b/lib/public/ISession.php @@ -96,10 +96,11 @@ interface ISession { * Wrapper around session_regenerate_id * * @param bool $deleteOldSession Whether to delete the old associated session file or not. + * @param bool $updateToken Wheater to update the associated auth token * @return void - * @since 9.0.0 + * @since 9.0.0, $updateToken added in 14.0.0 */ - public function regenerateId(bool $deleteOldSession = true); + public function regenerateId(bool $deleteOldSession = true, bool $updateToken = false); /** * Wrapper around session_id |