Needs review
Project:
OG User Roles
Version:
6.x-1.5
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
6 May 2011 at 16:11 UTC
Updated:
9 May 2011 at 11:36 UTC
Jump to comment: Most recent file
$_SESSION['og_user_roles'] is getting set for anonymous users and logged-in users.
This caused problems with caching (especially with Varnish) through the whole site, as cookies mean that cached pages aren't being used.
I've made a patch to stop the variable being set for anonymous users, which I'll attach below.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | session_fix-1149328-1.patch | 3.47 KB | lazysoundsystem |
Comments
Comment #1
lazysoundsystem commentedHere's the patch - replaces $user variable with $account and tests whether the $user is anonymous or not before setting session variables.