CodeIgniter Forums
How to load a session before loading the _display_cache () cache function? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=11)
+--- Thread: How to load a session before loading the _display_cache () cache function? (/showthread.php?tid=75356)



How to load a session before loading the _display_cache () cache function? - paulo kraker - 01-29-2020

Good morning, I'm using the _write_cache () function inside the Output.php file to generate the files type cache, and then the function using _display_cache () to load the page if it was already with cache.

To load the page with cache I saw that CodeIgniter uses this function _display_cache (), inside it or before it needed to get a value in session from a user to know if he is logged in or not. I saw that this function does not access any other force.

I've tried it all the way including via hooks and it didn't work either.

How do I load a session before loading the cached page?