If the global $user is changed in execution (e.g. devel_switch_user), sess_write does not seem to save that information. Upon page refresh, the original $user object is loaded into global $user.

This appears to be an issue with the $is_changed variable in sess_write - it should check to see if the global $user->uid has changed since the $last_read.

Is anyone else experiencing this issue? Attached is a patch for a possible fix that seems to work on my setup.

CommentFileSizeAuthor
#1 memcache_sessions_user_change.patch1.04 KBtimtrinidad

Comments

timtrinidad’s picture

StatusFileSize
new1.04 KB

Sorry - here's the patch.

japerry’s picture

Issue summary: View changes
Status: Needs review » Closed (outdated)

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.