Hey Pavel,
To alter the session expiry from what you have set for the
'cookie_duration'
(or 'default_duration') in your apps' config, you can use alter the
session cookie
expiry via the session keyword: ('session' called without args return
the session
object)
eg:
get '/' => sub {
session->expires(10); # 10 seconds from now.
};
Hope that helps,
Russell.
On 22/06/2014 10:17 pm, Pavel Denisov wrote:
I use Dancer2::Session::Cookie and am trying to implement "Remember
me" option for user login. I understand that I need to set 'expires'
to some future date for session cookie, but how do I do it in Dancer?
'cookie_duration' configuration parameter makes this, but it is
read-only and I can not change it depending on user input.
_______________________________________________
dancer-users mailing list
[email protected]
http://lists.preshweb.co.uk/mailman/listinfo/dancer-users
_______________________________________________
dancer-users mailing list
[email protected]
http://lists.preshweb.co.uk/mailman/listinfo/dancer-users