[Catalyst] Implementing a 'remember me on this computer' button
Edmund von der Burg
evdb at ecclestoad.co.uk
Thu Apr 7 11:20:55 GMT 2011
On 6 April 2011 06:13, Sam Kaufman <samuel.c.kaufman at gmail.com> wrote:
> 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.
That is a configuration parameter and so gets set at startup and is
applied to all cookies from then on. I want to be able to change the
expiry for an particular cookie so that some sessions persist and
> 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://email@example.com/
>> Dev site: http://dev.catalyst.perl.org/
> List: Catalyst at lists.scsys.co.uk
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive: http://firstname.lastname@example.org/
> Dev site: http://dev.catalyst.perl.org/
Edmund von der Burg - evdb at ecclestoad.co.uk
mob: +44 7903 420 689
More information about the Catalyst