1

I am banning specific user from my website and update the database fields with ban information but if they are already logged in they can still use website

I can control the database for ban information on every request but i do not want to control the database if user banned or not on every request for performance reasons.

Is there any easy way to do that?

How can i force them to logout ?

1 Answers1

0

thanks for your answers, i did not find any way to control database,

i used cookie validator on every 20 requests to reduces db checks and if user is banned, i signout he/she