- Patch #846330 by sun: proper wrapping of phpDoc.

merge-requests/26/head
Dries Buytaert 2010-09-17 14:56:27 +00:00
parent db1d3a0287
commit 743646d373
1 changed files with 3 additions and 2 deletions

View File

@ -311,8 +311,9 @@ function drupal_session_regenerate() {
}
$params = session_get_cookie_params();
$session_id = drupal_hash_base64(uniqid(mt_rand(), TRUE) . drupal_random_bytes(55));
// If the session cookie lifetime is set, the session will expire $params['lifetime'] seconds from the current request.
// If it is not set, it will expire when the browser is closed.
// If a session cookie lifetime is set, the session will expire
// $params['lifetime'] seconds from the current request. If it is not set,
// it will expire when the browser is closed.
$expire = $params['lifetime'] ? REQUEST_TIME + $params['lifetime'] : 0;
setcookie($insecure_session_name, $session_id, $expire, $params['path'], $params['domain'], FALSE, $params['httponly']);
$_COOKIE[$insecure_session_name] = $session_id;