title: How can I store objects in a session in PHP?
body: <p>Hello I would like to store or save an object inside a session,using classes like SessionHandler or arrays $_SESSION,I've seen that it is possible if I serialize the object,and I don't want to lose the methods of that object instance..
  I've seen seralizing it is possible but the objects what I want to store is created by PDOStatement::fetchObject() althought the instance class is "Users" I get this error:</p>
  
  <blockquote>
    <p>PDOException: You cannot serialize or unserialize PDO instances
    Why? It is not a PDO instance..</p>
  </blockquote>
  
  <p>Sorry I am spanish and I don't speak english very well..
  Thanks</p>