littleram - 10 May 2009 10:27 PM
lukeinjax - 16 February 2009 07:29 PM
I am experiencing this same issue. I’ve added the MY_Session file with the code above to my libraries folder, but I’m getting the following error:
A PHP Error was encountered
Severity: 4096
Message: Object of class __PHP_Incomplete_Class could not be converted to string
Filename: libraries/MY_Session.php
Line Number: 71
Anyone else having this issue?
This happens if you initialise the session before you’ve loaded the class definitions for the object you’re trying to save into the session. Ensure that you’ve include()‘d or require()‘d all the class definitions before you load the session library.
Im facing this problem, do you mean to use:
include ‘libraries/the-class-i-want-to-store’;
inside my controller and before my controller class definition?