simple, isn't it? ;)
what about the other way around, logging out a user when his authentication info cache is flushed !
i'm using the database login module. if we have an admin that changes the roles of the users and this change should take place immediately.
example: to change the roles of user (x):
1. update the new roles in the database
2. flush the authentication cache
3. logout the user (x) in order to apply the new roles immediately
q1) how do u enforce the user x to logout ?
q2) is this a good approach ?