managers(admin, user) can loign a web application, when admin disabled a user who is logined how to trigger the user logout the application right now?
I wonder in playframework how to trigger a logined user logout.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The easiest way to go about this is to have a controller action annotated with @Before, that checks that the user’s status (i.e. has been logged out by an admin) and if the user has been logged out redirects them to an appropriate page.
Example