session, beaker cookie expiration and remember me

2011-04-07 Thread Oliver Christen
Dear all

I have been asked to implement a way for user to be able to stay
logged for a longer period of time if they check a remember me
option at log in.

I have looked at Pylons's Beaker documentation but I cant find how to
modify the session cookie expiration date during runtime.

I would be really grateful is someone could tell me if this is
possible, and if yes, how.

Thank you very much in advance
Best regards
Oliver

-- 
You received this message because you are subscribed to the Google Groups 
pylons-discuss group.
To post to this group, send email to pylons-discuss@googlegroups.com.
To unsubscribe from this group, send email to 
pylons-discuss+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en.



Re: session, beaker cookie expiration and remember me

2011-04-07 Thread cd34
In Pyramid, 
http://docs.pylonsproject.org/projects/pyramid/1.0/api/security.html#pyramid.security.remember

you can specify the expiration length in your handler.

In Pylons, it depends on the auth system you're using.  Both authkit
and repoze.who/what have hooks that can be modified similarly.

-- 
You received this message because you are subscribed to the Google Groups 
pylons-discuss group.
To post to this group, send email to pylons-discuss@googlegroups.com.
To unsubscribe from this group, send email to 
pylons-discuss+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en.



Re: session, beaker cookie expiration and remember me

2011-04-07 Thread Michael Merickel
I know you can set session.cookie_expires on a per-session basis.

Michael


On Thu, Apr 7, 2011 at 7:31 AM, Oliver Christen 
oliver.chris...@camptocamp.com wrote:

 Dear all

 I have been asked to implement a way for user to be able to stay
 logged for a longer period of time if they check a remember me
 option at log in.

 I have looked at Pylons's Beaker documentation but I cant find how to
 modify the session cookie expiration date during runtime.

 I would be really grateful is someone could tell me if this is
 possible, and if yes, how.

 Thank you very much in advance
 Best regards
 Oliver

 --
 You received this message because you are subscribed to the Google Groups
 pylons-discuss group.
 To post to this group, send email to pylons-discuss@googlegroups.com.
 To unsubscribe from this group, send email to
 pylons-discuss+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/pylons-discuss?hl=en.



-- 
You received this message because you are subscribed to the Google Groups 
pylons-discuss group.
To post to this group, send email to pylons-discuss@googlegroups.com.
To unsubscribe from this group, send email to 
pylons-discuss+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en.