
evdb at ecclestoad
Apr 7, 2011, 4:20 AM
Post #4 of 5
(271 views)
Permalink
|
|
Re: Implementing a 'remember me on this computer' button
[In reply to]
|
|
On 6 April 2011 06:13, Sam Kaufman <samuel.c.kaufman [at] gmail> wrote: > http://search.cpan.org/~mstrout/Catalyst-Plugin-Session-State-Cookie-0.17/lib/Catalyst/Plugin/Session/State/Cookie.pm > "cookie_expires > > 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 others don't. Cheers, Edmund > On Tue, Apr 5, 2011 at 10:49 AM, Bill Moseley <moseley [at] hank> wrote: >> >> >> On Tue, Apr 5, 2011 at 7:16 AM, Edmund von der Burg <evdb [at] ecclestoad> 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 >> >> _______________________________________________ >> List: Catalyst [at] lists >> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst >> Searchable archive: http://www.mail-archive.com/catalyst [at] lists/ >> Dev site: http://dev.catalyst.perl.org/ >> > > _______________________________________________ > List: Catalyst [at] lists > Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst > Searchable archive: http://www.mail-archive.com/catalyst [at] lists/ > Dev site: http://dev.catalyst.perl.org/ > -- Edmund von der Burg - evdb [at] ecclestoad mob: +44 7903 420 689 web: http://www.ecclestoad.co.uk/ _______________________________________________ List: Catalyst [at] lists Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst [at] lists/ Dev site: http://dev.catalyst.perl.org/
|