How can I store object class into a session in PHP?
<p>How can I have an object class store into PHP session and then get it in my next page as variable. Could you help?</p>

<p>Here is my class.inc.php</p>

<pre><code>class shop {

var $shoeType;
var $color;

    public function __construct() {

        $shoeTypeService = new ShoeTypeService();
        $shoe = $shoeTypeService-&gt;getAllShoes();
        $this-&gt;shoeType = $shoe[20];
    }
}
</code></pre>
