On Apr 13, 2009, at 7:27 AM, edgarsmolow wrote:
I'm experiencing an issue with session cookies.1. I see that session['_id'] is created when a page on the site is first encountered. Are '_creation_time' and 'accessed_time' supposed to be created automatically? Or should those two fields be set in my code?
Those are both created for the first request.
2. The code below is in the base controller. A new session cookie is
produced (and new '_id' field) each time the same page is encountered:
if 'cre_dt' not in session_cookies:
session_cookies['cre_dt'] = datetime.now()
session_cookies['acc_dt'] = datetime.now()
session_cookies.save()
I'm going to need to see more of the code to answer that. What is session_cookies? Where in the BaseController is this? What does the actual controller you call to look like? Does it possibly override the method from the BaseController that is setting these?
Cheers, Ben
smime.p7s
Description: S/MIME cryptographic signature
