mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-07-08 17:34:26 +03:00
Защищаем куки от воровства через яваскрипт
This commit is contained in:
parent
b1630489d8
commit
39e4710a56
|
@ -522,7 +522,7 @@ class ModuleUser extends Module {
|
||||||
* Ставим куку
|
* Ставим куку
|
||||||
*/
|
*/
|
||||||
if ($bRemember) {
|
if ($bRemember) {
|
||||||
setcookie('key',$sKey,time()+Config::Get('sys.cookie.time'),Config::Get('sys.cookie.path'),Config::Get('sys.cookie.host'));
|
setcookie('key',$sKey,time()+Config::Get('sys.cookie.time'),Config::Get('sys.cookie.path'),Config::Get('sys.cookie.host'),false,true);
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue