git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@13285
7612ce4b-ef26-0410-bec9-
ea0150e637f0
if (ini_get('session.use_cookies')) {
// at a later stage we use sqsetcookie. At this point just do
// what session_regenerate_id would do
- setcookie(session_name(), session_id(), NULL, $base_uri);
+ sqsetcookie(session_name(), session_id(), 0, $base_uri);
}
return TRUE;
}
$onetimepad = OneTimePadCreate(strlen($newpw));
sqsession_register($onetimepad,'onetimepad');
$key = OneTimePadEncrypt($newpw, $onetimepad);
- setcookie('key', $key, 0, $base_uri);
+ sqsetcookie('key', $key, 0, $base_uri);
/* make sure we write the session data before we redirect */
session_write_close();