ses_read hasn't been changed in D5-D7 so this could come handy for all version.
anonymous users and authenticated users are different in places where they shouldn't be.

the patch add ->sid to anonymous users.

CommentFileSizeAuthor
session.patch868 bytesivansb@drupal.org

Comments

c960657’s picture

Status: Needs review » Needs work

When I log out, I get the following error:

Notice: Trying to get property of non-object in /home/chsc/www/drupal7-misc/includes/session.inc on line 87

Wouldn't it be better to add the following to drupal_anonymous_user() ?
$user->sid = session_id();

jody lynn’s picture

Status: Needs work » Closed (won't fix)

This no longer applies in D7 and beyond