Cookie not working after mod rewrite rule
- by moonwalker
Hi all,
I have a simple Cookie to set the chosen language:
$lang = $_GET['lang'];
$myLang = $_COOKIE["myLang"];
if (!isset($_COOKIE["myLang"])){
setcookie("myLang", "en", $expire);
include "languages/en.php";
$myLang = "en";
}else{
include "languages/$myLang.php";
}
// One year to expire
$expire = time()+60*60*24*30*365;
//…