Jump to content

Need Help of PHP Guru


bholbrook

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?
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.