Saving cache in subfolder for each user [Session problem] - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Saving cache in subfolder for each user [Session problem] (/showthread.php?tid=42866) |
Saving cache in subfolder for each user [Session problem] - El Forum - 06-22-2011 [eluser]Unknown[/eluser] I am trying to store each user cache in their specific folder. Each user has a uniqe id stored in their session. This id will be the folder name inside system/cache/ directory. But the session is not accessable in side this function and always returns and error: Fatal error: Call to undefined function get_instance() Below is the complete code Code: <?php if (!defined('BASEPATH')) exit('No direct script access allowed'); Any idea how i can do this in a better way? |