Exactly.... the session is not saved on my workstation.  On repeated
visits to the same page, no cookie on my workstation, the _id value
changes each visit and the other two fields are not available (since,
as you mentioned, it's a new session each visit).

Thanks.
Edgar



On Apr 14, 1:40 pm, Ben Bangert <[email protected]> wrote:
> 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
> 3KViewDownload
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" 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/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to