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

Edmund von der Burg evdb at ecclestoad.co.uk
Mon Apr 4 16:54:00 GMT 2011


On 4 April 2011 13:07, Boris G. Kolesnikov <kolesnikov.boris at gmail.com> wrote:
> Look up Catalyst::Plugin::Session - there's a method in there which is
> called in runtime.

Please treat me as very stupid and point me at the method - I don't
seem to be able to work out which one you mean.

Cheers,
  Edmund.


> 2011/4/4 Edmund von der Burg <evdb at ecclestoad.co.uk>:
>> 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.
>>
>> Am I missing something obvious?
>>
>> It seems to me that the easiest way to implement this might be to add
>> a flag that can be saved to the session - 'browser_session_only' or
>> similar. This would then be checked by the
>> C::P::Session::State::Cookie code (for the individual session) and the
>> correct cookie expiry time set. Happy to provide patches/tests if this
>> is the way to go.
>>
>> Or is there a better way?
>>
>> Cheers,
>>  Edmund.
>>
>> --
>> Edmund von der Burg - evdb at ecclestoad.co.uk
>> mob: +44 7903 420 689
>> web: http://www.ecclestoad.co.uk/
>>
>> _______________________________________________
>> Catalyst-dev mailing list
>> Catalyst-dev at lists.scsys.co.uk
>> http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst-dev
>>
>
> _______________________________________________
> Catalyst-dev mailing list
> Catalyst-dev at lists.scsys.co.uk
> http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst-dev
>



-- 
Edmund von der Burg - evdb at ecclestoad.co.uk
mob: +44 7903 420 689
web: http://www.ecclestoad.co.uk/



More information about the Catalyst-dev mailing list