Forums / Developer / Explanation on how to rememeber user logins (using cookies)

Explanation on how to rememeber user logins (using cookies)

Author Message

Eirik Alfstad Johansen

Thursday 22 April 2004 7:37:11 am

Hi,

According to the following list of unanswered threads, there has been several people frustrated about how to accomplish "remembering" a user once (s)he has logged in:

http://www.ez.no/community/forum/setup_design/auto_login_using_cookies
http://www.ez.no/community/forum/developer/what_s_the_status_on_the_remember_me_feature
http://www.ez.no/community/forum/setup_design/remember_my_login
http://www.ez.no/community/forum/suggestions/remember_password

I've been wondering about this for a while myself, and as it turns out, it wasn't too hard once I started looking. The key is to provide a value to the CookieTimeOut parameter of the [Session] block in the site.ini file. The value you provide, should be the amount of seconds you want the cookie to last.

However, AFAIK, it's still not possible to have a check box allowing users to select themselves whether they would like their login remembered or not, a feature that I feel is greatly needed.

In addtion, there should be an INI setting where one could specify whether remembering logins should be allowed or not, to prevent users from doing so if you do not want them to.

Sincerely,

Eirik Johansen
http://www.netmaking.no/

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

Dominik Pich

Friday 23 April 2004 12:34:08 am

Post a suggestion uner bug reports

Eirik Alfstad Johansen

Friday 23 April 2004 3:09:46 am

Done: http://ez.no/community/bug_reports/remember_user_login_settings

Sincerely,

Eirik Johansen
http://www.netmaking.no/

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

Valentin Doroschuk

Wednesday 16 August 2006 8:52:18 am

Added this ability to
3.9.0alpha1 (trunk rev. 16616).

Paul Borgermans

Wednesday 16 August 2006 9:29:29 am

And for 3.7/3.8 you can use the contribution from Kristof:

http://ez.no/community/contribs/hacks/cookie_user

--paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans