Hi all,
I'd like to have a 'remember me' cookie for users who want their username
to be remembered by the browser (but not the password).
Dancer2::Core::Role::SessionFactory's set_cookie_header seems quite
specific to sessions, so it appears that the right/best way to do it is to
use push_header (as set_cookie_header does), viz:
if (is_successful_login && defined params->{remember_me} &&
params->{remember_me}) {
push_header(
'Set-Cookie',
(remember_me_user => session('user'))
);
}
Is there a well-defined pattern for this?
cheers,
Nathan
_______________________________________________
dancer-users mailing list
[email protected]
http://lists.preshweb.co.uk/mailman/listinfo/dancer-users