Way Users Not Automatically Logged Out After Being Banned #1200
-
PHP Version8.3 CodeIgniter4 Version4.5.5 Shield Version1.1 Which operating systems have you tested for this bug?macOS Which server did you use?apache DatabaseMariaDB 10.2 Did you customize Shield?No What happened?When I ban a user, if the user is still logged in, they are not automatically logged out. This means they remain logged in until they log out themselves or the session expires. Steps to ReproduceExpected OutputAnything else?No response |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
If you're using session-based authentication, you need to ensure that the session filter is correctly set up to automatically log out banned users. https://shield.codeigniter.com/quick_start_guide/using_session_auth/#protecting-pages |
Beta Was this translation helpful? Give feedback.
-
Banning feature just changes the user status. It does not log the user out. |
Beta Was this translation helpful? Give feedback.
-
That was the problem. Now that I have set the session filter, it works again. Thank you! |
Beta Was this translation helpful? Give feedback.
If you're using session-based authentication, you need to ensure that the session filter is correctly set up to automatically log out banned users.
https://shield.codeigniter.com/quick_start_guide/using_session_auth/#protecting-pages