Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Redirection on session timeout
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  9 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Juan Antonio Ibáñez  
View profile  
 More options Jun 1 2012, 4:17 pm
From: Juan Antonio Ibáñez <juanito1...@gmail.com>
Date: Fri, 1 Jun 2012 13:17:41 -0700 (PDT)
Local: Fri, Jun 1 2012 4:17 pm
Subject: Redirection on session timeout

Hello boys,

   I saw I can set up session timout configuring beaker.session.timeout
insisde dev.ini. It works ok, but, is there any way to force going to
logout handler url when any controller method gets calles once the session
has timed out?

Regards


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
León Domingo  
View profile  
 More options Jun 1 2012, 7:46 pm
From: León Domingo <leon.domi...@ender.es>
Date: Sat, 2 Jun 2012 01:46:29 +0200
Local: Fri, Jun 1 2012 7:46 pm
Subject: Re: [TurboGears] Redirection on session timeout

Hola Juan,
The age of the cookie which is used to store your credentials, will make
that cookie to be invalid (outdated) once it expires. As far as i know you
dont have to do anything.

Saludos

León Domingo
El 01/06/2012 22:17, "Juan Antonio Ibáñez" <juanito1...@gmail.com> escribió:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Juan Antonio Ibáñez  
View profile  
 More options Jun 2 2012, 2:14 am
From: Juan Antonio Ibáñez <juanito1...@gmail.com>
Date: Fri, 1 Jun 2012 23:14:28 -0700 (PDT)
Local: Sat, Jun 2 2012 2:14 am
Subject: Re: [TurboGears] Redirection on session timeout

I can see as session gets destroyed but I can still call controllers
methods without being redirected to logout handler. All these methods have
@require predicates. I read something about that repoze uses a different
cookie than beaker to maintain the login auth

El sábado, 2 de junio de 2012 01:46:29 UTC+2, León Domingo escribió:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alessandro Molina  
View profile  
 More options Jun 2 2012, 6:16 am
From: Alessandro Molina <alessandro.mol...@gmail.com>
Date: Sat, 2 Jun 2012 12:16:40 +0200
Local: Sat, Jun 2 2012 6:16 am
Subject: Re: [TurboGears] Redirection on session timeout
Yes, authentication and session use two different cookies.
You can expire auth cookie using both using tg.response.delete_cookie
or request.environ['repoze.who.plugins']['main_identifier'].forget
method.

On Sat, Jun 2, 2012 at 8:14 AM, Juan Antonio Ibáñez


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Juan Antonio Ibañez Santorum  
View profile  
 More options Jun 2 2012, 6:48 am
From: Juan Antonio Ibañez Santorum <juanito1...@gmail.com>
Date: Sat, 2 Jun 2012 12:48:55 +0200
Local: Sat, Jun 2 2012 6:48 am
Subject: Re: [TurboGears] Redirection on session timeout

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
El 02/06/2012 12:16, "Alessandro Molina" <alessandro.mol...@gmail.com>
escribió:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Alessandro Molina  
View profile  
 More options Jun 2 2012, 12:30 pm
From: Alessandro Molina <alessandro.mol...@gmail.com>
Date: Sat, 2 Jun 2012 18:30:14 +0200
Local: Sat, Jun 2 2012 12:30 pm
Subject: Re: [TurboGears] Redirection on session timeout
On Sat, Jun 2, 2012 at 12:48 PM, Juan Antonio Ibañez Santorum

<juanito1...@gmail.com> 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 must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Juan Antonio Ibañez Santorum  
View profile  
 More options Jun 2 2012, 2:20 pm
From: Juan Antonio Ibañez Santorum <juanito1...@gmail.com>
Date: Sat, 2 Jun 2012 20:20:34 +0200
Local: Sat, Jun 2 2012 2:20 pm
Subject: Re: [TurboGears] Redirection on session timeout

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 <alessandro.mol...@gmail.com>


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Juan Antonio Ibañez Santorum  
View profile  
 More options Jun 2 2012, 2:27 pm
From: Juan Antonio Ibañez Santorum <juanito1...@gmail.com>
Date: Sat, 2 Jun 2012 20:27:12 +0200
Local: Sat, Jun 2 2012 2:27 pm
Subject: Re: [TurboGears] Redirection on session timeout

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

Regards

2012/6/2 Juan Antonio Ibañez Santorum <juanito1...@gmail.com>


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Juan Antonio Ibáñez  
View profile  
 More options Jul 14 2012, 5:06 pm
From: Juan Antonio Ibáñez <juanito1...@gmail.com>
Date: Sat, 14 Jul 2012 14:06:03 -0700 (PDT)
Local: Sat, Jul 14 2012 5:06 pm
Subject: Re: [TurboGears] Redirection on session timeout

How  request.identity['userdata'] must be used?

I did some test but I am not be able to store/recover data into it.

Regards

El sábado, 2 de junio de 2012 18:30:14 UTC+2, Alessandro Molina escribió:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »