• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Accessing session variables from outside the CI app

Is it possible to access the CI session variables from outside the app using $_SESSION for example?

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

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??

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.