Don't you like the built-in security for some reason? :) Kind regards, Johannes
On Fri, Mar 11, 2011 at 1:15 AM, Michael <excelwebz...@gmail.com> wrote: > I have created my own login form, once submitting it call an Ajax > (controller) action that execute a login function from a service I > wrote. The service gets an instance of SecurityContext ($this- > >security).. here is the login function: > > public function login($userId, $rememberMe = false) > { > ... > > $token = $rememberMe > ? new RememberMeToken($this->user, $this->providerKey, > base64_encode(serialize(array($this->user->getUsername(), $this->user- > >getPassword())))) > : new UsernamePasswordToken($this->user->getUsername(), > $this->user->getPassword(), $this->providerKey, $this->user- > >getRoles()); > > $this->security->setToken($token); > > return true; > } > > How can I make it so if $rememberMe is true it will also set a cookie > (right now RememberMeToken only set a session object) > > Any thoughts? > > -- > 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 > -- 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