Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
TG2, how to do 'remember me' with repoze.who?
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
  2 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
 
JeffreyHsu  
View profile  
 More options May 29 2009, 9:55 am
From: JeffreyHsu <jeffre...@gmail.com>
Date: Fri, 29 May 2009 06:55:50 -0700 (PDT)
Local: Fri, May 29 2009 9:55 am
Subject: TG2, how to do 'remember me' with repoze.who?
i know repoze.who has already provide 'remember' function but i don't
know how to use it.

should i place a checkbox field such like 'remember_me' in the login
form?

thanks !


 
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.
Gustavo Narea  
View profile  
 More options Jun 1 2009, 7:20 am
From: Gustavo Narea <m...@gustavonarea.net>
Date: Mon, 1 Jun 2009 13:20:59 +0200
Local: Mon, Jun 1 2009 7:20 am
Subject: Re: [TurboGears] TG2, how to do 'remember me' with repoze.who?
Hello.

JeffreyHsu said:

> i know repoze.who has already provide 'remember' function but i don't
> know how to use it.

It's already used automatically whenever authentication succeeds. By default
it remembers the user until s/he closes the browser (because it uses session
cookies).

> should i place a checkbox field such like 'remember_me' in the login
> form?

The "remember me" option used in many login forms is not the same thing as
repoze.who's "remember_me". The former is about remembering the user for a
given period of time, even if the user agent is closed, while the later will
last until the browser is closed and it's used all the time upon successful
logins.

At present the default repoze.who plugin used in TG2 to remember authenticated
users (AuthTktCookiePlugin) doesn't support setting the Expires/Max-Age
attribute of the cookies sent, but this will be solved soon:
http://bugs.repoze.org/issue87

Cheers.
--
Gustavo Narea <xri://=Gustavo>.
| Tech blog: =Gustavo/(+blog)/tech  ~  About me: =Gustavo/about |


 
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 »