[Catalyst] Implementing a 'remember me on this computer' button

Sam Kaufman samuel.c.kaufman at gmail.com
Wed Apr 6 05:13:17 GMT 2011


Number of seconds from now you want to elapse before cookie will
expire. Set to 0 to create a session cookie, ie one which will die
when the user's browser is shut down."
Sounds pretty simple to me.

On Tue, Apr 5, 2011 at 10:49 AM, Bill Moseley <moseley at hank.org> wrote:
> On Tue, Apr 5, 2011 at 7:16 AM, Edmund von der Burg <evdb at ecclestoad.co.uk> wrote:
>> I want my sessions either to be long-lived (several months) or, at the
>> user's discretion, only last for the current browser session.
>> Achieving either of these is quite easy, but doing both in one app
>> appears a little trickier.
> I have used a separate remember me cookie that effectively will auto-login the user.  That's very simple to implement.  It doesn't save any session state that way, but avoiding the login is often what users are after rather than remembering the exact state of the session.  Not sure how useful that would be for someone returning days later.
> --
> Bill Moseley
> moseley at hank.org
> _______________________________________________
> List: Catalyst at lists.scsys.co.uk
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
> Dev site: http://dev.catalyst.perl.org/

More information about the Catalyst mailing list