Accessing session variables from outside the CI app - 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: Accessing session variables from outside the CI app (/showthread.php?tid=20614) |
Accessing session variables from outside the CI app - El Forum - 07-15-2009 [eluser]bobbob[/eluser] Is it possible to access the CI session variables from outside the app using $_SESSION for example? Accessing session variables from outside the CI app - El Forum - 07-15-2009 [eluser]Dam1an[/eluser] If you're using native PHP sessions ($_SESSION) then there is no reason why you can't access that from outside of CI. If you're using the session class, there's a lot of dependencies. In the constructor alone it calls - log_message - get_instance - string_helper and possibly - encrypt library - database classes Accessing session variables from outside the CI app - El Forum - 07-16-2009 [eluser]bobbob[/eluser] That looks a bit complicated. I am thinking can I do something like file_get_contents() on a controller which checks the session and outputs the html to the page that that is outside the CI app? file_get_contents() didn't work so maybe there is another solution?? |