From 3cf47aa4e1c7c3ccc2aa2a0ac23e4acc6a867c0e Mon Sep 17 00:00:00 2001 From: Olivier PEREZ Date: Sat, 17 Jan 2015 16:30:28 +0100 Subject: [PATCH] Issue #14 Use same cookie for / and /admin --- app/inc/i18n.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/inc/i18n.php b/app/inc/i18n.php index 025efe7..587a704 100644 --- a/app/inc/i18n.php +++ b/app/inc/i18n.php @@ -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 {