On 6 April 2011 06:13, Sam Kaufman <[email protected]> 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 <[email protected]> wrote: >> >> >> On Tue, Apr 5, 2011 at 7:16 AM, Edmund von der Burg <[email protected]> >> 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 >> [email protected] >> >> _______________________________________________ >> List: [email protected] >> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst >> Searchable archive: http://www.mail-archive.com/[email protected]/ >> Dev site: http://dev.catalyst.perl.org/ >> > > _______________________________________________ > List: [email protected] > Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst > Searchable archive: http://www.mail-archive.com/[email protected]/ > Dev site: http://dev.catalyst.perl.org/ > -- Edmund von der Burg - [email protected] mob: +44 7903 420 689 web: http://www.ecclestoad.co.uk/ _______________________________________________ List: [email protected] Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/[email protected]/ Dev site: http://dev.catalyst.perl.org/
