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

eZ debug

Timing: Jan 31 2025 06:20:28
Script start
Timing: Jan 31 2025 06:20:28
Module start 'content'
Timing: Jan 31 2025 06:20:28
Module end 'content'
Timing: Jan 31 2025 06:20:28
Script end

Main resources:

Total runtime0.2764 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0062 588.1875180.7969
Module start 'content' 0.00620.0047 768.984497.9766
Module end 'content' 0.01090.2655 866.9609527.9219
Script end 0.2763  1,394.8828 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00321.1549200.0002
Check MTime0.00140.5025200.0001
Mysql Total
Database connection0.00070.257310.0007
Mysqli_queries0.230483.36771410.0016
Looping result0.00140.50051390.0000
Template Total0.265195.910.2651
Template load0.00070.270310.0007
Template processing0.264495.649810.2644
Override
Cache load0.00050.187110.0005
Sytem overhead
Fetch class attribute can translate value0.00080.271410.0008
XML
Image XML parsing0.00030.097010.0003
General
dbfile0.00622.2276200.0003
String conversion0.00000.001730.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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