On Apr 14, 2009, at 10:26 AM, edgarsmolow wrote:
The project name is hsd. Code for the inherited base controller is below. session['_id'] field is available, but session['_creation_time'] and session['_accessed_time'] fields do not seem to be available. It didn't seem to matter whether the code below that sets the cookie is in the inherited base class, in __before__, or in the controller being executed: same results. Perhaps I'm doing something incorrectly.
Not sure what you're expecting to see, but the _accessed_time and _creation_time are only set if the cookie is actually *sent* to the browser. So there's no accessed_time and creation_time on *new* sessions because so far, there's no guarantee that they'll actually be created/saved.
On second-access those two fields will exist. The code you pasted works just fine here and that is retained in the session.
Is the session not saving data on your computer? Cheers, Ben
smime.p7s
Description: S/MIME cryptographic signature
