Re: Classes and Sessions

From: Date: Thu, 01 Jun 2000 17:13:49 +0000
Subject: Re: Classes and Sessions
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-850@lists.php.net to get a copy of this message
> The "workaround" is to shut down your browser, put the "if (isset())" > at the top of each file everywhere. *blink* If you don't, and your user > hits another non-header'd page and comes back your pages will > tweak on the method calls. I've not tried it with outside pages...perhaps > tonight. There's something afoot with classes and sessions.... Perhaps I can solve some of the mystery.. what you describe sounds like my experiences when doing this: <?php session_start(); import_class_hierarchy(); // My function. ?> (First start session, then do all the including of the classes) If I instead do this: <?php import_class_hierarchy(); session_start(); ?> Every class is okay. If I do it the wrong way around (top one) all the objects are objects but they cannot be called methods on. Sounds similar? Cheers, Soeren Staun-Pedersen - Staun@SunSITE.auc.dk ------ "The internet is full, beat it" - Me.

« previous php.general (#850) next »