It seems like something in the include would have to be doing it, is there something in that include (or in a descendant include of it) that might be instantiating the Pancake class and calling the alter_session method?
Also, though it seems to execute fine, could it be that you are calling die; instead of die();? Or does PHP no longer require the () on function calls? On Fri, May 27, 2011 at 11:26 AM, Wade Preston Shearer < [email protected]> wrote: > I have a script like this: > > > include_once('pancake.class.php'); > > print_r($_SESSION); > die; > > $pancake = new Pancake(); > $pancake->alter_session(); > > > The alter_session() method makes changes to the session. When I print out > the session and then exit a few lines above however the alterations have > already occurred. > > How could this be happening? > > _______________________________________________ > > UPHPU mailing list > [email protected] > http://uphpu.org/mailman/listinfo/uphpu > IRC: #uphpu on irc.freenode.net > _______________________________________________ UPHPU mailing list [email protected] http://uphpu.org/mailman/listinfo/uphpu IRC: #uphpu on irc.freenode.net
