* Confusing return value in SessionStore('some_session') .get_expiry_date(), example:*
from datetime import datetime from django.contrib.sessions.backends.db import SessionStore my_session = SessionStore() my_session.get_expiry_date() # this return new created sessions expiration time(14 days after datetime.now()) this is expected and logical but: my_session = SessionStore( 'some_session' ) my_session.get_expiry_date() # this return new created sessions expiration time too, unexpected, this should return my_session expiration time Here in this example django force us using *my_session._get_session_from_db().expire_date* instead *my_session.get_expiry_date()*, but one simple question: why we should do additional work when we saied to django 'we have specific db session? In last reply in ticket #32088 i described a bit more. -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-developers+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/c2d4a4de-b133-44cb-acb1-768e3b6265bbn%40googlegroups.com.