The IP is useless, just saved for db admin information, may be. Look at the filter : $c = new Criteria(); $c->add(sfGuardRememberKeyPeer::REMEMBER_KEY, $cookie); $rk = sfGuardRememberKeyPeer::doSelectOne($c); if ($rk && $rk->getSfGuardUser()) { //Automatic-signin }
On Oct 19, 11:39 pm, HiDDeN <sombrasdepa...@gmail.com> wrote: > It is the Doctrine version. > > On 19 oct, 18:37, Andrei Dziahel <trickster...@gmail.com> wrote: > > > Hi. > > > Well, IP check *should* work. It looks like a bug. Which version? For Propel > > or Doctrine? > > > 2009/10/19 HiDDeN <sombrasdepa...@gmail.com> > > > > I have tested this: > > > > - I logged in marking the "remember me" option. > > > - I closed the browser > > > - I changed the IP field in the sf_guard_remember_key table > > > corresponding to my user > > > - I reopened the browser with the same url as before, and the session > > > continued > > > > So, I can't yet understand why is it saving the IP... > > > > On 19 oct, 14:38, Eno <symb...@gmail.com> wrote: > > > > On Mon, 19 Oct 2009, HiDDeN wrote: > > > > > I have a simple question: why is the "remember me" feature storing the > > > > > user IP in the database? > > > > > > If I logout, change my IP, and login again, it is yet working well, > > > > > so... why is it storing the IP?? I can't understand it. > > > > > Maybe so noone can hijack the session perhaps? > > > > > -- > > > -- > > With the best regards, Andy. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---