Can someone tell me how to store a class in a session var. I want to
test to see if it has been defined and if not create it. I'm having
problems with it right now.
This is what I'm trying currently
<?
Class a
{
var $temp;
function a()
{
$this->temp=1;
}
}
session_start();
if ( !isset( $c )
{
$c = new a();
session_register("a");
}
?>
later on I get errors about the class functions being undefined. Can
anyone please point me in the right direction on how to register my
objects as session vars.
- [PHP] Objects and sessions Brandon Orther
- Re: [PHP] Objects and sessions Ethan Schroeder
- Re: [PHP] Objects and sessions Brad Hubbard
- Re: [PHP] Objects and sessions Greg Sidelinger
- Re: [PHP] Objects and sessions Tamas Arpad
- Re: [PHP] Objects and sessions Christopher William Wesley
- Re: [PHP] Objects and sessions Tamas Arpad
- [PHP] Need advide on partnersh... py
- [PHP] Re: Need advide on ... George Whiffen
- [PHP] Objects and sessions Francisco M. Marzoa Alonso
- Re: [PHP] Objects and sessions Thomas Munz
- [PHP] [SOLUTION] Re: [PHP] Objects... Francisco M. Marzoa Alonso
- [PHP] Re: Objects and sessions Shen Kong

