1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-07-03 06:55:03 +03:00

Защищаем куки от воровства через яваскрипт

This commit is contained in:
Gran 2012-09-27 23:03:49 +04:00
parent b1630489d8
commit 39e4710a56

View file

@ -522,7 +522,7 @@ class ModuleUser extends Module {
* Ставим куку
*/
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;
}