I have created a login with remember-me checkbox. After I submit and
validate the form I call a login function that save the user into a
session. if remember-me checked i set cookie also:

// create new key
$key = base64_encode(serialize(array($this->user->getUsername(), $this-
>user->getPassword())));

// save remember_me to a cookie
$this->response->headers->setCookie($this-
>options['remember_me_cookie_name'], $key, null, time() + $this-
>options['remember_me_cookie_lifetime']);

For some reason this not working, and idea why?

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to