I have a web site where admin can ban users.
How to destroy users SESSION when he receives ban? So the plan is if the user is logged in and he received ban, the web site is killing the SESSION and user will logout automatically or after page refresh or something?
I check with SESSION['logged_in'] on every page are the user is logged in and the value is the users ID from database. So if the user with ID=1 receives ban i want to kill this SESSION with this VALUE.
I dont use cookies. Thanks for the answers :)