On 3/26/11 10:43 AM, Wade Preston Shearer wrote:
> I currently set the account in the user's session upon logging in, so
> the change wouldn't be updated until the user logs out and then back
> in. Any ideas on how to update the change other than hitting the
> database on every page load to check if the profile still has access
> to the account in use?

I have a similar problem on CougarBoard.com with needing to notify user 
sessions about various things.  I already was using memcached for my 
sessions, so I added something that basically flags a specific memcached 
key (unique per user), and I have the user account check that flag on 
every page load, and if it is set, refresh their permissions (among 
other things).

Steve

_______________________________________________

UPHPU mailing list
[email protected]
http://uphpu.org/mailman/listinfo/uphpu
IRC: #uphpu on irc.freenode.net

Reply via email to