On 17/05/07, Michael Reece [EMAIL PROTECTED] wrote:
there's no especially sane way to extend the session cookie on a per-
user basis that i have found.
here is a hack that i am experimenting with:
if ($c-login($username, $password)) {
$c-session-{remember_me} =
there's no especially sane way to extend the session cookie on a per-
user basis that i have found.
here is a hack that i am experimenting with:
if ($c-login($username, $password)) {
$c-session-{remember_me} = $c-req-params-{remember_me};
# ...
}
and in package MyApp.pm (or a plugin
A. Pagaltzis [EMAIL PROTECTED] wrote on 05/15/2007 05:32:18 PM:
* Evaldas Imbrasas [EMAIL PROTECTED] [2007-05-16 00:25]:
I didn't find a Catalyst plugin that would transparently deal
with persistent logins. Is there one? If not, what's the
recommended way to enable persistent logins
Evaldas Imbrasas [EMAIL PROTECTED] wrote on 05/15/2007 05:45:11 PM:
Persistent login is the one that lasts longer than a session. When a
user logs in, she gets an option to be remembered for a given period
of time. If this user comes back within that period of time, she is
auto-logged in.
[EMAIL PROTECTED] wrote:
Evaldas Imbrasas [EMAIL PROTECTED] wrote on 05/15/2007 05:45:11 PM:
Persistent login is the one that lasts longer than a session. When a
user logs in, she gets an option to be remembered for a given period
of time. If this user comes back within that period of time,
I do not know what you mean lasts longer then a session -- http is
stateless, if you want state (such as logged in and authorized) you need
some sort of session (cookie, uri, hiddenform,...).
I am already using standard Catalyst plugins that handle sessions and
authentication. I set sessions
* Evaldas Imbrasas [EMAIL PROTECTED] [2007-05-16 00:55]:
Persistent login is the one that lasts longer than a session.
When a user logs in, she gets an option to be remembered for a
given period of time. If this user comes back within that
period of time, she is auto-logged in. A good example
On Tuesday 15 May 2007 06:19:02 pm Evaldas Imbrasas wrote:
I do not know what you mean lasts longer then a session -- http is
stateless, if you want state (such as logged in and authorized) you need
some sort of session (cookie, uri, hiddenform,...).
I am already using standard Catalyst
On 5/15/07, Jonathan Rockway [EMAIL PROTECTED] wrote:
Use the session plugin and set the session expiration to ... 1 week. If some
data needs to expire sooner than that ... expire it sooner than that.
Here's what I would do. Create a session and log the user in. Store a last
login time in