diff --git a/include/init.php b/include/init.php index 645c9ff0..24a4f88a 100644 --- a/include/init.php +++ b/include/init.php @@ -8,14 +8,14 @@ if (!isset($_SESSION['userAccreditation']) || !isset($_SESSION['userLevel'])) { } if (!isset($_COOKIE['theme'])) { - setcookie('theme', 0, time()+10*60*60); + setcookie('theme', 0, time()+10*60*60, "/", ".e59.fr"); $darkTheme = $darkThemes[0]; $lightTheme = $lightThemes[0]; } if (isset($_GET['theme'])) { $newTheme = (int)$_GET['theme'] % 2; - setcookie('theme', $newTheme); // % 2 => Number of different themes + setcookie('theme', $newTheme, time()+10*60*60, "/", ".e59.fr"); // % 2 => Number of different themes $darkTheme = $darkThemes[$newTheme]; $lightTHeme = $lightThemes[$newTheme];