Forums / Developer / Tracking logouts - HELP!

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