Our Django application has the following session management requirements.
also you can use stackoverflow build in functions
SESSION_SAVE_EVERY_REQUEST = True