Forums / Developer / Stay logged in
Vincent Saulnier
Friday 19 September 2003 8:05:36 am
With eZ3.2
Why, even if I use "/user/logout/" I am still logged in?
Paul Borgermans
Friday 19 September 2003 8:40:18 am
What did you do to your ezp installation? I never had that.
Now its time to turn on debug output and tell us what's in the bag there
-paul
eZ Publish, eZ Find, Solr expert consulting and training http://twitter.com/paulborgermans
Friday 19 September 2003 8:47:35 am
I can't login anymore, so I can't show you the debug output.
Friday 19 September 2003 10:33:50 am
This is the debug output when I click on write /user/logout :
eZ debug Timing: Sep 19 2003 13:32:54 Script start Debug: access.php Sep 19 2003 13:32:54 Matching uri element 1 on uri 'user/login' with match 'eprintfr' Debug: access.php Sep 19 2003 13:32:54 Adding 'eprintfr' to access path Debug: access.php Sep 19 2003 13:32:54 Updated settings to use siteaccess 'eprintfr' Debug: current siteaccess <kernel-siteaccess> Sep 19 2003 13:32:54 array(2) { ["type"]=> int(2) ["name"]=> string(8) "eprintfr" } Timing: Sep 19 2003 13:32:54 Module start 'user' Debug: eZTemplateCompiler::hasCompiledTemplate <eztemplate-compile> Sep 19 2003 13:32:54 Cache hit for uri '' with key '59e52e8384b630f59249400fb583f45a' Notice: eZTSTranslator::loadTranslationFile <i18n-tstranslator> Sep 19 2003 13:32:54 Loading cached translation Notice: eZTSTranslator::loadTranslationFile <i18n-tstranslator> Sep 19 2003 13:32:54 Loading cached translation Timing: Sep 19 2003 13:32:54 Module end 'user' Debug: eZTemplateCompiler::hasCompiledTemplate <eztemplate-compile> Sep 19 2003 13:32:54 Cache hit for uri '' with key 'd4ca3f762f292ce179f38c499d0a603c' Debug: eZTemplateCompiler::hasCompiledTemplate <eztemplate-compile> Sep 19 2003 13:32:54 Cache hit for uri '' with key 'd81815c0859e1ffaf775c0e2dc111e1c' Debug: eZTemplateCompiler::hasCompiledTemplate <eztemplate-compile> Sep 19 2003 13:32:54 Cache hit for uri '' with key '0e08dd1cff6e30cee40f43ab4e0357bc' Notice: eZTSTranslator::loadTranslationFile <i18n-tstranslator> Sep 19 2003 13:32:54 Loading cached translation Warning: ezi18n Sep 19 2003 13:32:54 No translation for file(translation.ts) in context(design/standard/layout): '%1 front page' with comment() Warning: ezi18n Sep 19 2003 13:32:54 No translation for file(translation.ts) in context(design/standard/layout): 'Search %1' with comment() Debug: eZTemplateCompiler::hasCompiledTemplate <eztemplate-compile> Sep 19 2003 13:32:54 Cache hit for uri '' with key '60f62e591ee0337d4493213881299229' Debug: eZTemplateCompiler::hasCompiledTemplate <eztemplate-compile> Sep 19 2003 13:32:54 Cache hit for uri '' with key 'b9a79bc3b20beb63598e0684c61a465c' Debug: eZTemplateCompiler::hasCompiledTemplate <eztemplate-compile> Sep 19 2003 13:32:54 Cache hit for uri '' with key '0caa69134c172076a758d46b5cfe3ed6' Debug: eZTemplateCompiler::hasCompiledTemplate <eztemplate-compile> Sep 19 2003 13:32:54 Cache hit for uri '' with key 'cd1e8c8fb76d0203987ee1cce5305fed' Timing: Sep 19 2003 13:32:54 End
Friday 19 September 2003 10:40:41 am
Is this related to your other thread on lost admin?
Friday 19 September 2003 10:41:59 am
When I clear the cache, it still work like if I was still logged in
Friday 19 September 2003 10:42:42 am
On the same Site but not related.I think.
Friday 19 September 2003 10:52:12 am
I am redirected to /user/login but if I enter /content/view/full/2/ even if requireUserLogin=true
And the system still knows my name...
Friday 19 September 2003 11:53:52 am
My only way to logout is to close the browser...
Sunday 21 September 2003 10:17:16 pm
If I change this line :"return $Module->redirectTo( $redirectURL );"
in "/kernel/user/logout.php" to this :"return;"
I am logged out.Anybody has an idea?
Monday 22 September 2003 5:25:08 am
Hi everybody,
This the only thing separating me from a complete update to 3.2.
Does anybody had the same thing?Or am I the only one?
Thanks in advance for your help.
Ole Morten Halvorsen
Monday 22 September 2003 5:43:02 am
Try this quick fix:
In lib/ezutils/classes/ezhttptool.php uncomment this line: // session_unregister( $name ); in the removeSessionVariable() function.
Which PHP version are you using? I found this problem on PHP 4.2.3, but couldn't reproduce the problem on PHP 4.3.2.
Senior Software Engineer - Vision with Technology http://www.visionwt.com http://www.omh.cc http://www.twitter.com/omh eZ Certified Developer http://ez.no/certification/verify/358441 http://ez.no/certification/verify/272578
Monday 22 September 2003 6:17:27 am
This is exactcly the version of PHP I have.
I'm going to try the fix and get back to this thread with the result.
Monday 22 September 2003 6:24:17 am
It worked.Thak you very much.
Is this fix going to be in the second release of ez3.2? Or is it best to upgrade to PHP 4.3?If so, is it going to affect my OLD eZ 2.2.x installations?