[eluser]phazei[/eluser]
CI can use the $_SESSION super global, but it doesn't utilize it.
In the $_COOKIE it stores:
Code:
[ci_session] => a:4:{s:10:\"session_id\";s:32:\"03756b71eb18d0ac038dcd2b75b8baea\";s:10:\"ip_address\";s:13:\"68.2xx.2xx.2xx\";s:10:\"user_agent\";s:50:\"Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv\";s:13:\"last_activity\";s:10:\"1245123099\";}95f84d6a3be927745b9eda88d7562d8e
I could then do a db query to the session id. But then I'd need lots of extra code to parse that string. It's not anything standard that I know. The s:## seems to be the length. And then I'd also have to load the db. I believe I've seen a simple include that would pull all the code in that was needed. And if I use CI's encrypted sessions, I'd need to copy all that code for decryption and have a copy of the key. There's nothing easy going in that direction.
Specifically what I'm doing is integrating TinyMCE. Usually that doesn't require authentication, but I'm using this 3rd party file manager inside of it that uses TinyMCE's plug-in architecture. It has a section for authentication. I actually found a solution where I can just direct it to a ci that's part of CI, have that page set some $_SESSION vars just for it, and then have it forward to the page after settings up the vars.
But none-the-less, I would still like to know what I was attempting since it could be of use. I thought I recalled someone mentioning how in an old thread of mine that was asking about some AJAX pages that were independent of CI, but I can't seem to find it.
I think it might something as simple as including some CI php file at the top of the file, but I don't know.