#2548: [patch] Add set/get_expires methods and expires property to sessions
------------------------+---------------------------------------------------
   Reporter:  Tsume     |                Owner:  adrian      
     Status:  new       |            Component:  Contrib apps
    Version:            |           Resolution:              
   Keywords:  sessions  |                Stage:  Accepted    
  Has_patch:  1         |           Needs_docs:  0           
Needs_tests:  0         |   Needs_better_patch:  0           
------------------------+---------------------------------------------------
Comment (by [EMAIL PROTECTED]):

 Replying to [comment:19 SmileyChris]:
 > I guess we had different ideas about what should be happening. I think
 it is useful to be able to specify a different "age" than default, whereas
 you are focussing on setting the session to a limited "life".
 
 What is the meaning of a session age? If I set the session age to be one
 week, I think it should expire in one week. How will your patch accomplish
 it.The expiry date is being constantly pushed on each modification, defies
 the purpose of "age".
 
 I am not sure the default django session expiry managed this any better.
 In Session.save() one should use get_or_create, and pass expiry_date as
 default.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/2548#comment:20>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to