Upgrade to 3.2.3
This commit is contained in:
@@ -469,6 +469,9 @@ class Session
|
||||
} else {
|
||||
$this->needsRetransmission = true;
|
||||
}
|
||||
|
||||
// update cache of the Sessions instance with the new token
|
||||
$this->sessions->updateCache($this);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -242,6 +242,18 @@ class Sessions
|
||||
$this->store()->collectGarbage();
|
||||
}
|
||||
|
||||
/**
|
||||
* Updates the instance cache with a newly created
|
||||
* session or a session with a regenerated token
|
||||
*
|
||||
* @internal
|
||||
* @param Kirby\Session\Session $session Session instance to push to the cache
|
||||
*/
|
||||
public function updateCache(Session $session)
|
||||
{
|
||||
$this->cache[$session->token()] = $session;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the auth token from the cookie
|
||||
*
|
||||
|
Reference in New Issue
Block a user