Ways to drop/manage user's sessions in case that sessions are stored in default php session storage?
<p>Are there any ways to drop user sessions when sessions are stored in default php session storage?</p>

<p>For example, I'm website admin and I want to ban logged user. User authentification status is stored in session. I'm deleting user row from database, but user is still logged and all nessesary authentification information is also stored in session. I need to drop/modify session.</p>

<p>Possible ways:</p>

<ul>
<li>load user's row from DB on every request</li>
<li>create file, saying to delete user's session and check this file existence on every request</li>
<li>crete file in /dev/shm (very fast checking), but file will be removed when rebooted</li>
<li>store sessions in DB (overhead for my project)</li>
<li>store sessions in nosql (redis, memcachedb) (overhead for my project)</li>
</ul>

<p>Any elegant ways except storing user's sessions in database or nosql data storages?</p>
