Skip to content
Snippets Groups Projects
Commit 80566552 authored by Andreas Åkre Solberg's avatar Andreas Åkre Solberg
Browse files

Language choice cookie set to path "/" to be used on multiple sites

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@653 44740490-163a-0410-bde0-09ae8108e29a
parent 386c5736
No related branches found
No related tags found
No related merge requests found
...@@ -54,7 +54,7 @@ class SimpleSAML_XHTML_Template { ...@@ -54,7 +54,7 @@ class SimpleSAML_XHTML_Template {
$this->language = $language; $this->language = $language;
// setcookie ( string $name [, string $value [, int $expire [, string $path [, string $domain [, bool $secure [, bool $httponly ]]]]]] ) // setcookie ( string $name [, string $value [, int $expire [, string $path [, string $domain [, bool $secure [, bool $httponly ]]]]]] )
// time()+60*60*24*900 expires 900 days from now. // time()+60*60*24*900 expires 900 days from now.
setcookie('language', $language, time()+60*60*24*900); setcookie('language', $language, time()+60*60*24*900, '/');
} }
/** /**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment