diff options
author | Lukas Reschke <lukas@owncloud.com> | 2016-01-04 15:00:58 +0100 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2016-01-04 15:09:01 +0100 |
commit | fec41e753926b9f98a554b99dc66b6dd7a0c96a3 (patch) | |
tree | c12929701b7e8c5cc7032be5cec9a3164a29ebd1 /lib/public | |
parent | ebc52300e752c68b3f6dcc822894ad1ab85f0999 (diff) | |
download | nextcloud-server-fec41e753926b9f98a554b99dc66b6dd7a0c96a3.tar.gz nextcloud-server-fec41e753926b9f98a554b99dc66b6dd7a0c96a3.zip |
Move regeneration of session ID into session classes
There were code paths that nowadays call ISession::login directly thus bypassing the desired regeneration of the session ID. This moves the session regeneration deeper into the session handling and thus ensures that it is always called. Furthermore, I also added the session regeneration to the remember me cookie plus added some test case expectations for this.
Diffstat (limited to 'lib/public')
-rw-r--r-- | lib/public/isession.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/public/isession.php b/lib/public/isession.php index aee635d7a9d..89a181ad0fd 100644 --- a/lib/public/isession.php +++ b/lib/public/isession.php @@ -86,4 +86,12 @@ interface ISession { */ public function close(); + /** + * Wrapper around session_regenerate_id + * + * @param bool $deleteOldSession Whether to delete the old associated session file or not. + * @return void + * @since 9.0.0 + */ + public function regenerateId($deleteOldSession = true); } |