Re: session expire_date

2007-08-10 Thread Jens Diemer
KpoH schrieb: > You can view all other settings in django_root_dir/conf/global_settings.py Don't understand. How should this help me? I would like to know, how long the current session is still valid. Do I think to complex? Should I simply do this: --

Re: session expire_date

2007-08-09 Thread KpoH
SESSION_COOKIE_NAME = 'sessionid' # Cookie name. This can be whatever you want. SESSION_COOKIE_AGE = 60 * 60 * 24 * 7 * 2 # Age of cookie, in seconds (default: 2 weeks). SESSION_COOKIE_DOMAIN = None # A string like ".lawrence.com", or None for standard domain cookie. SESSION_C

session expire_date

2007-08-09 Thread Jens Diemer
I would like to know the expire date of the current session. I made this: -- from django.contrib.sessions.models import Session session_cookie_name = settings.SESSION_COOKIE_NAME current_session