I am using Django.
How can i kick off a user who has logged-in?
or
How can i get the user’s session and kill it?
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.
If you can access the shell, then:
Replace
YOUR_USER_IDwith the ID of a user to be kicked.The key
'_auth_user_id'may differ from version to version, I suppose, but that worked for me. To check if you have the same, just print out some ofs.get_decoded()and look at the output.