Skip to content
Snippets Groups Projects
Commit 783aa5d1 authored by Jaime Pérez Crespo's avatar Jaime Pérez Crespo
Browse files

Merge branch 'renklaf-fix_missing_authtoken_cookie_params_rememberme'

parents 612bbef2 8ccb6e2e
Branches
Tags
No related merge requests found
......@@ -753,12 +753,16 @@ class SimpleSAML_Session implements Serializable
*/
public function updateSessionCookies($params = null)
{
assert(is_null($params) || is_array($params));
$sessionHandler = \SimpleSAML\SessionHandler::getSessionHandler();
if ($this->sessionId !== null) {
$sessionHandler->setCookie($sessionHandler->getSessionCookieName(), $this->sessionId, $params);
}
$params = array_merge($sessionHandler->getCookieParams(), is_array($params) ? $params : array());
if ($this->authToken !== null) {
$globalConfig = SimpleSAML_Configuration::getInstance();
\SimpleSAML\Utils\HTTP::setCookie(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment