Use HttpOnly session cookies
This commit is contained in:
parent
59e5df4aa6
commit
b4f0cf7a38
1 changed files with 1 additions and 0 deletions
|
@ -40,6 +40,7 @@ class LocaleManager
|
||||||
{
|
{
|
||||||
$session_factory = new \Aura\Session\SessionFactory();
|
$session_factory = new \Aura\Session\SessionFactory();
|
||||||
$session = $session_factory->newInstance($cookies);
|
$session = $session_factory->newInstance($cookies);
|
||||||
|
$session->setCookieParams(['httponly' => true]);
|
||||||
$this->sessionSegment = $session->getSegment('Alltube\LocaleManager');
|
$this->sessionSegment = $session->getSegment('Alltube\LocaleManager');
|
||||||
$cookieLocale = $this->sessionSegment->get('locale');
|
$cookieLocale = $this->sessionSegment->get('locale');
|
||||||
if (isset($cookieLocale)) {
|
if (isset($cookieLocale)) {
|
||||||
|
|
Loading…
Reference in a new issue