CI 1.7 Session Bug within object storage |
[eluser]sramos[/eluser]
[quote author="littleram" date="1242012460"][quote author="lukeinjax" date="1234830581"]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: Code: A PHP Error was encountered Anyone else having this issue?[/quote] 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.[/quote] Im facing this problem, do you mean to use: Quote:include 'libraries/the-class-i-want-to-store'; inside my controller and before my controller class definition?
[eluser]MVUG[/eluser]
Issue is fixed in trunk... https://bitbucket.org/ellislab/codeignit...ot-working
[eluser]farinspace[/eluser]
found a better solution which supports deep arrays, seems like this is waiting for a CI 3.0 release. see: https://github.com/EllisLab/CodeIgniter/pull/583 MY_Session.php Code: <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); |
Welcome Guest, Not a member yet? Register Sign In |