Forums / Developer / Stay logged in

Stay logged in

Author Message

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

Vincent Saulnier

Friday 19 September 2003 8:47:35 am

I can't login anymore, so I can't show you the debug output.

Vincent Saulnier

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

Paul Borgermans

Friday 19 September 2003 10:40:41 am

Is this related to your other thread on lost admin?

-paul

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

Vincent Saulnier

Friday 19 September 2003 10:41:59 am

When I clear the cache, it still work like if I was still logged in

Vincent Saulnier

Friday 19 September 2003 10:42:42 am

On the same Site but not related.
I think.

Vincent Saulnier

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...

Vincent Saulnier

Friday 19 September 2003 11:53:52 am

My only way to logout is to close the browser...

Vincent Saulnier

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?

Vincent Saulnier

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

Vincent Saulnier

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.

Vincent Saulnier

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?

eZ debug

Timing: Jan 18 2025 19:39:38
Script start
Timing: Jan 18 2025 19:39:38
Module start 'content'
Timing: Jan 18 2025 19:39:39
Module end 'content'
Timing: Jan 18 2025 19:39:39
Script end

Main resources:

Total runtime1.0845 sec
Peak memory usage4,096.0000 KB
Database Queries229

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0077 588.7109180.8516
Module start 'content' 0.00770.9385 769.5625708.6328
Module end 'content' 0.94620.1382 1,478.1953353.3359
Script end 1.0844  1,831.5313 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00450.4193210.0002
Check MTime0.00180.1631210.0001
Mysql Total
Database connection0.00070.067510.0007
Mysqli_queries0.988891.17262290.0043
Looping result0.00250.22692270.0000
Template Total1.055797.320.5279
Template load0.00170.161220.0009
Template processing1.054097.184320.5270
Template load and register function0.00020.016210.0002
states
state_id_array0.00080.071610.0008
state_identifier_array0.00070.066720.0004
Override
Cache load0.00170.15531050.0000
Sytem overhead
Fetch class attribute can translate value0.00230.215340.0006
Fetch class attribute name0.00130.1206150.0001
XML
Image XML parsing0.00100.090040.0002
class_abstraction
Instantiating content class attribute0.00000.0026160.0000
General
dbfile0.00210.1975280.0001
String conversion0.00000.000530.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
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
14content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
20content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
9content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 47
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs