session_start(); // STORE OBJECT $object = new sample_object(); $_SESSION['sample'] = serialize($object); // RETRIEVE OPBJECT $object = unserialize($_SESSION['sample']);