I have a Symfony 1.4 / sfDoctrineGuard application and like to add a stay signed in function. I already found sfGuardRememberMeFilter, but how to use it? Is there a tutorial or something like that?
Milena Dimitrova answers:
In order to enable sfGuardRememberMeFilter you have to edit security.yml of your secure app: add the filter and respective class name just above the security filter:
Here is the tutorial (click on the Readme tab):
I've already done this:
<blockquote>Change the name or expiration period of the "Remember Me" cookie
By default, the "Remember Me" feature creates a cookie named sfRemember that will last 15 days. You can change this behavior in app.yml:
remember_key_expiration_age: 2592000 # 30 days in seconds
however no cookie is set. Don't I need to add some checkbox to the login form or something similar?
OK. Seems like it is working, but there is an IP restriction on the Remember Me token. Is there a way to remove the IP address restriction? In the main target country of the website it's common for ISPs to disconnect their customers after a certain idle-time, so they get new dynamic IPs every few hours.