Commit 7459a335 authored by drumm's avatar drumm
Browse files

#91046 by jvandyk. Fix handling of expired sessions.

parent 64162b74
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment