bholbrook Posted September 29, 2006 Share Posted September 29, 2006 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 throwntrigger_error works the same way.ANy ideas? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.