Do not refresh ACP session cookies
authorTim Düsterhus <duesterhus@woltlab.com>
Thu, 15 Oct 2020 12:35:59 +0000 (14:35 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Thu, 15 Oct 2020 14:13:50 +0000 (16:13 +0200)
They are scoped as session cookies and thus live until the browser is closed
which is preferable compared to a dated expiry.

wcfsetup/install/files/lib/system/session/SessionHandler.class.php

index f9fd3530dee36676325143e1e9681a46ae0eb6b4..cf607bce923049625c8fe2fd509aa37281021a31 100644 (file)
@@ -408,7 +408,7 @@ final class SessionHandler extends SingletonFactory {
                ]);
                
                // Refresh cookie.
-               if ($this->user->userID) {
+               if ($this->user->userID && !$this->isACP) {
                        HeaderUtil::setCookie(($this->isACP ? 'acp' : 'user')."_session", $this->sessionID, TIME_NOW + 86400 * 14);
                }