Fixed cookie storage
This commit is contained in:
parent
4b62592975
commit
55c7d3ddb1
@ -47,7 +47,7 @@ mb_internal_encoding("UTF-8");
|
|||||||
$langstr="";
|
$langstr="";
|
||||||
if(isset($_GET['setlang'])){
|
if(isset($_GET['setlang'])){
|
||||||
$langstr=$_GET['setlang'];
|
$langstr=$_GET['setlang'];
|
||||||
setcookie("language", $langstr, 90*86000);
|
setcookie("language", $langstr, time() + 90*86000);
|
||||||
}
|
}
|
||||||
else if(isset($_COOKIE['language'])){
|
else if(isset($_COOKIE['language'])){
|
||||||
$langstr=$_COOKIE['language'];
|
$langstr=$_COOKIE['language'];
|
||||||
|
Loading…
Reference in New Issue
Block a user