Great.  Do you think this is worth creating a Session.is_new function
from?

On Sep 30, 9:40 pm, mdipierro <[email protected]> wrote:
> correction. Try this instead:
>
> response.cookies.get(response.session_id_name,None) !=
> response.session_id
>
> is True if the session is new, False otherwise
>
> On Sep 30, 9:37 pm, mdipierro <[email protected]> wrote:
>
> > No but you can use:
>
> > request.cookies.has_key(response.session_id_name)
>
> > On Sep 30, 8:47 pm, "mr.freeze" <[email protected]> wrote:
>
> > > Asp.net and java have convenience functions for this.  Does web2py? I
> > > can't find it.
>
> > > Thanks!
> > > Nathan
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py-users" 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/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to