Yes.

Set the auth.expiration to something very long (in seconds) and expire
session yourself:

if auth.user and auth.last_visit:
   expiration = ....
   if auth.last_visit + datetime.timedelta(days=0,expiration)<
request.now:
      auth.user = None
      session.auth = None

where expiration is the expiration time for this use that you compute
somehow


On Nov 11, 10:46 am, Wiiboy <jordon...@gmail.com> wrote:
> Is there a way to change the expiration time of a session per-session,
> as opposed to globally (e.g. a default global expiration time, and
> some method of the session to change the expiration time).
>
> I've found that per-session expiration can work well with things like
> auto-logout.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to