Skip to content
Snippets Groups Projects
Commit 3cf47aa4 authored by Olivier PEREZ's avatar Olivier PEREZ
Browse files

Issue #14 Use same cookie for / and /admin

parent 80be71d3
No related branches found
No related tags found
No related merge requests found
......@@ -21,7 +21,7 @@ asort($ALLOWED_LANGUAGES);
if (isset($_POST['lang']) && is_string($_POST['lang']) && in_array($_POST['lang'], array_keys($ALLOWED_LANGUAGES)) ) {
$mlocale = $_POST['lang'] ;
setcookie('lang' , $_POST['lang'], time()+60*5);
setcookie('lang' , $_POST['lang'], time()+60*5, '/');
} elseif ( isset($_COOKIE['lang']) && is_string($_COOKIE['lang']) && in_array($_COOKIE['lang'], array_keys($ALLOWED_LANGUAGES)) ) {
$mlocale = $_COOKIE['lang'] ;
} else {
......
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