Sorry, config must be done in app_cfg.py not in dev.ini

Regards

2012/6/2 Juan Antonio Ibañez Santorum <[email protected]>

> Thank you very much Alessandro. I think I've found the way to set auth
> cookie timeout setting following options in dev.ini:
>
> base_config.sa_auth.cookie_timeout = X
> base_config.sa_auth.cookie_reissue_time = Y
>
> As I can read in repoze docs, AuthTktCookiePlugin: "If reissue_time is
> specified, when we encounter a cookie that is older than the reissue time
> (in seconds), but younger that the timeout, a new cookie will be issued. If
> timeout is specified, you must also set reissue_time to a lower value."
>
> Regards
>
>
> 2012/6/2 Alessandro Molina <[email protected]>
>
>> On Sat, Jun 2, 2012 at 12:48 PM, Juan Antonio Ibañez Santorum
>> <[email protected]> wrote:
>> > What I need is to know how to set up auth session duration, to be
>> renewed in
>> > each controller method call and to be redirected to logout handler when
>> a
>> > controller method gets called once auth session has expired
>> >
>>
>> You can easily achieve this by checking in BaseController.__call__ for
>> session expiration and renew it every time.
>>
>> Another option is to store, instead of using a Beaker session, your
>> data into request.identity['userdata'] which will last until the user
>> is logged.
>> Beaker session is mostly provided as a way to store temporary data
>> related to the browsing session instead of user or when no
>> authentication is provided.
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "TurboGears" 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/turbogears?hl=en.
>>
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TurboGears" 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/turbogears?hl=en.

Reply via email to