Commit cede322c authored by webchick's avatar webchick

#293612 by egfrith: user_authenticate() should work when is empty.

parent 65006002
......@@ -132,7 +132,7 @@ function _sess_write($key, $value) {
// the session table. This reduces memory and server load, and gives more useful
// statistics. We can't eliminate anonymous session table rows without breaking
// the "Who's Online" block.
if (!drupal_save_session() || (empty($_COOKIE[session_name()]) && empty($value))) {
if (!drupal_save_session() || ($user->uid == 0 && empty($_COOKIE[session_name()]) && empty($value))) {
return TRUE;
}
......
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