Force your users to login – Kill the Sessions!

Recently I had the need to clean out the users from our system and have them login again so that the correct user groups could be stored in the session etc. So this little snippet could come in handy again, and I thought it would be a good thing to have on here.

User session data: /var/lib/php/session

rm -f /var/lib/php/session/sess*

This will force remove all files beginning with ‘sess’.

Tuesday, June 29th, 2010 Unix/Linux

Leave a Reply

You must be logged in to post a comment.

[ad code=1 align=center]