What's the status on the "remember me" feature?

Author Message

Eirik Alfstad Johansen

Wednesday 24 March 2004 1:43:25 am

Hi ez,

After having browsed the forums I've noticed that several people have requested the "remmeber me" feature of the login (having it stored in a cookie) over the past months.

What's the status on this feature? Will it be implemented in v. 3.4? Has anyone implemented it/made an extension for it?

Thanks in advance !

Sincerely,

Eirik Johansen

Sincerely,

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

Gabriel Ambuehl

Sunday 11 December 2005 4:42:28 am

Same question but about version 3.6/3.7

Visit http://triligon.org

Paul Borgermans

Sunday 11 December 2005 6:47:46 am

Not standard, but as contribution by Kristof:

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

Regards

--paul

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

Gabriel Ambuehl

Sunday 11 December 2005 11:30:14 am

Nice, I was just thinking about writing something very similar ;)

This should be integrated (and used on ez.no while we're at it ;)

Doesn't really seem to work for me: http://ez.no/community/contribs/hacks/cookie_user#msg89198

Visit http://triligon.org

Kristof Coomans

Tuesday 13 December 2005 6:39:21 am

I've made a mistake with the extension directory name. I've uploaded a new tarball with the fix. If I have time, I will try to test and release a new version with seperate cookies per site access (already in SVN, kernel patches not modified yet) and patches for newer eZ publish versions.

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Gabriel Ambuehl

Tuesday 13 December 2005 7:41:31 am

I'll try it later today. Can you comment on what version it should work on?

Visit http://triligon.org

Kristof Coomans

Tuesday 13 December 2005 8:29:17 am

We use it on a portal made with eZ publish 3.6.4. But I think it works with 3.6.x. Haven't tested it yet with 3.7.

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Paul Borgermans

Tuesday 13 December 2005 10:38:41 am

Yes, it works with 3.7 (the same portal Kristof mentions, but upgraded to 3.7 on a test server)

Other extensions are broken and may need a branch for 3.7/3.8

Regards

--paul

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

Gabriel Ambuehl

Wednesday 14 December 2005 2:52:27 am

I can report success with the tarball and 3.6.4! Thanks a lot!

Visit http://triligon.org

Gabriel Ambuehl

Wednesday 14 December 2005 4:14:03 am

Looking at it, it might make sense to encrypt the contents of the cookies?

Visit http://triligon.org

Gabriel Ambuehl

Thursday 15 December 2005 1:34:47 am

There seems to be another bug: when clicking on logout, the cookies don't seem to get deleted and one thus stays logged in!

The usually expected behavior would likely be to really get logged out, have the cookies deleted and be asked for PW next time one comes around...

Visit http://triligon.org

Kristof Coomans

Thursday 15 December 2005 5:42:22 am

I have some days off from work so I'm not going to fix these issues immediately, but maybe you can contribute to the extension (it's in the community svn repository) by adding this functionality.

Encryption of the cookies would be safer of course.

Some hints on how to remove cookies on logout:

From kernel/user/logout.php:

include_once( "lib/ezutils/classes/ezhttptool.php" );
include_once( "kernel/classes/datatypes/ezuser/ezuser.php" );

$http =& eZHTTPTool::instance();

$user =& eZUser::instance();
$user->logoutCurrent();

$http->setSessionVariable( 'force_logout', 1 );

$ini =& eZINI::instance();
$redirectURL = $ini->variable( 'UserSettings', 'LogoutRedirect' );

return $Module->redirectTo( $redirectURL );

The session variable 'force_logout' isn't used anywehere else by the system (I've tried to find it in other files with grep). You can check on the existence of this session variable in cookieuser/login.php and if it exists, delete the login cookies and afterwards remove the session variable. I think this will work.

Good luck!

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Kristof Coomans

Monday 16 January 2006 2:36:39 am

Check out the new version (1.3) of Cookie User (http://ez.no/community/contribs/hacks/cookie_user), which
- encrypts the password cookie
- disables authentication cookie checking on logout

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Valentin Doroschuk

Wednesday 16 August 2006 8:48:58 am

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

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 18 2025 16:28:02
Script start
Timing: Jan 18 2025 16:28:02
Module start 'layout'
Timing: Jan 18 2025 16:28:02
Module start 'content'
Timing: Jan 18 2025 16:28:03
Module end 'content'
Timing: Jan 18 2025 16:28:03
Script end

Main resources:

Total runtime0.8571 sec
Peak memory usage4,096.0000 KB
Database Queries96

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0057 588.0469152.6406
Module start 'layout' 0.00570.0037 740.687539.4766
Module start 'content' 0.00940.8466 780.1641781.6016
Module end 'content' 0.85600.0011 1,561.765628.1250
Script end 0.8571  1,589.8906 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.3585160.0002
Check MTime0.00130.1499160.0001
Mysql Total
Database connection0.00070.086310.0007
Mysqli_queries0.783191.3677960.0082
Looping result0.00070.0821940.0000
Template Total0.827596.520.4137
Template load0.00180.205720.0009
Template processing0.825796.329920.4128
Template load and register function0.00010.011810.0001
states
state_id_array0.00110.126210.0011
state_identifier_array0.00100.116320.0005
Override
Cache load0.00160.1869620.0000
Sytem overhead
Fetch class attribute can translate value0.00040.050750.0001
Fetch class attribute name0.00170.2032180.0001
XML
Image XML parsing0.00160.191750.0003
class_abstraction
Instantiating content class attribute0.00000.0032220.0000
General
dbfile0.00100.1148340.0000
String conversion0.00000.001040.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
8content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
14content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
16content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 44
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs