Permalink
Browse files

Fix sessid by parameter behaviour (update global $_COOKIE)

  • Loading branch information...
1 parent 15bfe29 commit c5471dbdd12a5e015b19e923ab3872e8a44fe863 @cdujeu cdujeu committed Jun 21, 2016
Showing with 1 addition and 0 deletions.
  1. +1 −0 core/src/core/src/pydio/Core/Http/Middleware/SessionMiddleware.php
@@ -40,6 +40,7 @@ public static function handleRequest(\Psr\Http\Message\ServerRequestInterface $r
$cookies = $requestInterface->getCookieParams();
if (!isSet($cookies[$sessionName])) {
$cookies[$sessionName] = $getParams[PYDIO_SESSION_QUERY_PARAM];
+ $_COOKIE[$sessionName] = $getParams[PYDIO_SESSION_QUERY_PARAM];
$requestInterface = $requestInterface->withCookieParams($cookies);
}
}

0 comments on commit c5471db

Please sign in to comment.