I\'m currently working on a small CMS for my website and I\'m getting following error when calling session_start() :
Fatal error: Exception thrown withou
You cannot store resources (a PDO object is actually a resource) in a session. On reinitialisation this is broken and throws an exception 'outside' the scope of your PHP file.
You're probably throwing an exception from a destructor of from an exception handler.
Resources :
On the same topic :
So, as I was told, saving a PDO object in the session does invoke that error. I used a workaround, I'm now setting up da connection for each request, instead of storing connections in the session.
Thanks for your help !