In my application, I can change permissions and user roles in the backend.
When a user logs in and I delete the user role, the user can still access content that he is not actually allowed to access, because he lacks the role. Changes take effect only when the user re-authenticates himself with an exit / login.
So my question is: can I access a registered user session (not me)? I know that I can access my own session and destroy it, which forces me to log in again. But I want to get a session of any user who has registered. Is it possible? I could not find any resources.
I am using PdoSessionStorage with symfony2.1 and fosuserbundle.
source share