Friday, December 5, 2008

Get User from session key in Django

by Kevin Fricovsky

So, you get an email from your Django app informing you of a server exception. Ever want to find out who the user is? Maybe do a little help desk support? This post details reverse engineering the sessionID provided in the exception email details and then querying Django's Session tables and User table to pull back the related User. One of the comments also noted that the popular django-command-extensions project provides a nice utility management command for this already - ‘print_user_for_session’.

Bookmark and Share

Continue reading… Join the Discussion, 0 people have left comments.

Tags/Topics view all