#91046 by jvandyk. Fix handling of expired sessions.

5.x
Neil Drumm 2006-11-07 06:18:35 +00:00
parent 64162b74ad
commit 7459a335c3
1 changed files with 2 additions and 1 deletions

View File

@ -41,7 +41,8 @@ function sess_read($key) {
}
// We didn't find the client's record (session has expired), or they are an anonymous user.
else {
$user = drupal_anonymous_user($user->session);
$session = isset($user->session) ? $user->session : '';
$user = drupal_anonymous_user($session);
}
return $user->session;