Tracking logouts - HELP!

Author Message

Simon Phillips

Monday 28 February 2005 12:52:44 am

Hi folks,

I've added in some custom triggers to detect logouts and logins in ezPublish (will be publishing the code soon). However, it appears that the session data is never restored when the logout page is loaded - so I can't identify which user is logging out.

Try it for yourself! If I put code within the logoutCurrent method of the ezUser class (which is the method run by user/logout.php), the $user object that supposedly contains the current user prior to logout is just the anonymous user. Even if I drop code in logout.php (and all this is before the actual 'logout' code has been run), the current user object is simply not available.

I can't work out why - it's as if the session loader isn't being called, or the session is being destroyed in a previous method call - but I'm having trouble following the code execution through from the inital call to index.php and working out where it's happening. And yes, I am logged in. And the logout does indeed log me out.

<b>Please help!</b> I know that svn being hacked might be more exciting, but I'm getting desperate...

Simon

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 22:24:45
Script start
Timing: Jan 18 2025 22:24:45
Module start 'layout'
Timing: Jan 18 2025 22:24:45
Module start 'content'
Timing: Jan 18 2025 22:24:45
Module end 'content'
Timing: Jan 18 2025 22:24:45
Script end

Main resources:

Total runtime0.0174 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.0072 589.0234152.6094
Module start 'layout' 0.00720.0032 741.632839.4141
Module start 'content' 0.01040.0053 781.046985.1172
Module end 'content' 0.01570.0017 866.164130.3047
Script end 0.0173  896.4688 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002413.7161140.0002
Check MTime0.00105.8983140.0001
Mysql Total
Database connection0.00106.023310.0010
Mysqli_queries0.003117.858430.0010
Looping result0.00000.126310.0000
Template Total0.00137.710.0013
Template load0.00063.627410.0006
Template processing0.00074.043410.0007
Override
Cache load0.00042.509810.0004
General
dbfile0.00021.401880.0000
String conversion0.00000.059040.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