Welcome Guest, Not a member yet? Register   Sign In
Accessing session variables from outside the CI app
#1

[eluser]bobbob[/eluser]
Is it possible to access the CI session variables from outside the app using $_SESSION for example?
#2

[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
#3

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




Theme © iAndrew 2016 - Forum software by © MyBB