Top "Django-sessions" questions

For questions related to Django's session mechanism.

How to clear all session variables without getting logged out

I am trying to clear all of the session variables but not logout the current user. user = request.session.get(…

django python-2.7 django-sessions
Django: setting a session and getting session key in same view

I want to store some things in a database, and am using the current session as a foreign key: from …

django django-models django-sessions
Django, SESSION_COOKIE_DOMAIN with multiple domains

In Django, I have SESSION_COOKIE_DOMAIN set to my domain name. But I would actually like to run the …

django django-sessions
Django: session database table cleanup

Does this table need to be purged or is it taken care automatically by Django?

python django django-sessions
How can I logout a user in Django?

Our Django deployment checks every night which active users can still be found in out LDAP directory. If they cannot …

python django django-authentication django-sessions
How do I modify the session in the Django test framework

My site allows individuals to contribute content in the absence of being logged in by creating a User based on …

python django django-testing django-sessions
Testing a session variable in django

I came across Django Request.Session where, I know how to set and test it for a specific value. request.…

django session-variables django-sessions
How to check whether a user is online in django template?

In template, when I use {% if topic.creator.is_authenticated %} Online {% else %} Offline {% endif %} the users turn out to be …

django django-templates django-sessions
Sometimes request.session.session_key is None

I hit a problem when get session_key from request.session. I am using Django1.8 and Python2.7.10 to set up …

python django session django-sessions
How to display all session variables in django?

How to display all session variables ? i know that a variable can be accessed using request.session['variable'] but i …

django django-sessions