Jump to content

Archived

This topic is now archived and is closed to further replies.

bholbrook

Need Help of PHP Guru

Recommended Posts

Okay, somewhere in my script my session is being altered. I need to know where. I know for sure that it is my problem via the code below.

[code]

global $strSession;
global $intLine;
$intLine = 0;

function checkSession(){

$GLOBALS['intLine']++;

if($GLOBALS['strSession'] != $_SESSION){

echo "<P>";
echo "<strong>".$GLOBALS['intLine']."</strong>";
var_dump($_SESSION);
echo "</P>";
$GLOBALS['strSession'] = $_SESSION;

}

}

register_tick_function("checkSession");

declare(ticks=1);

[/code]

Whenever the session changes, i print it out. The problem is that i dont know WHERE the change is happening. One miht suggest 'start at the top and look for session calls' but that is hard to do with a 10,000 line script (not psgetti coded, there is an entire library i bring in & its an admin side script, so time to load is acceptable).

At any rate, i need to know what line of what file the session canges on.

exception class doesn't work, only retruns data of where the exception is thrown
trigger_error works the same way.

ANy ideas?

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.