I'm trying to do the following : let's say that a logged-in admin user wants to force another logged-in user to logout out imediatly (kick him). The admin is not a rude person, and he would like to inform the kicked-user why he was kicked.
What would be the best solution to implement this 'polite kick' feature ?
I could implement the 'kick' part with no problem :
- add a user_id column in the session table
- select the correct row and just delete it from de session table : user will be logged-off !
My problem is with the 'gentle' part, or in other words, how to set a flash message to the kicked user ? Is it possible to inject a flash message directly into the session row of the user to be kicked ? I tried to decode/unserialize session data read from the session table, modify and update them, but up to now with no success...
Any idea is welcome.
Thanks
