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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 19 2025 00:57:38
Script start
Timing: Jan 19 2025 00:57:38
Module start 'layout'
Timing: Jan 19 2025 00:57:38
Module start 'content'
Timing: Jan 19 2025 00:57:38
Module end 'content'
Timing: Jan 19 2025 00:57:38
Script end

Main resources:

Total runtime0.0179 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0054 589.4141152.6563
Module start 'layout' 0.00540.0043 742.070339.5078
Module start 'content' 0.00970.0063 781.578193.3984
Module end 'content' 0.01600.0018 874.976634.3047
Script end 0.0178  909.2813 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002413.6758140.0002
Check MTime0.00115.9525140.0001
Mysql Total
Database connection0.00094.858110.0009
Mysqli_queries0.003720.511030.0012
Looping result0.00000.089210.0000
Template Total0.00158.510.0015
Template load0.00094.819510.0009
Template processing0.00073.657310.0007
Override
Cache load0.00063.368310.0006
General
dbfile0.002212.428380.0003
String conversion0.00000.039940.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs