Hi, i have this question. My website is build whereby a user can only be in the member's page if he has login. therefore every page has this,
if (!$_SESSION['userid']) header index.php
Problem is that if i ban the user and the user did not end the session, he will still be allowed to use the site until he end the session and try to login again, and he will be denied due to the change in the status in the database.
I'm thinking that the only way is to delete the physical session file in the server, but i dont know how. Anyone?