Welcome Guest, Not a member yet? Register   Sign In
SOLVED - session data available outside of CI ??? - example, for CKFinder (FCKeditor plugin)
#1

[eluser]Flemming[/eluser]
Post detailing the solution is 3 below this one!

===============================================

Hi gang,

am trying to figure out how to create some session data that can be accessed by a PHP script OUTSIDE of CI.

example:

CKFinder (plugin for FCK editor) uses session validation to prevent unauthorised uploading of files. Normally, just something like
Code:
if($_SESSION['adminLoggedIn'])...
would work. However, I'm validating users INSIDE of my CI application and storing their logged in status with
Code:
session->set_userdata
- and I can't figure out how to pass session data OUT of CI and into the CKFinder (or any other external script).

I thought maybe I could just do
Code:
session_start();
$_SESSION['mySession'] = 1;
inside a CI function - and then be able to access that session from any other PHP script outside of CI ... but that doesn't seem to work Sad

I'm sure it is very simple to do but I can't think how!

Hope someone can help! :-)

Flemming


Messages In This Thread
SOLVED - session data available outside of CI ??? - example, for CKFinder (FCKeditor plugin) - by El Forum - 06-04-2008, 06:08 AM



Theme © iAndrew 2016 - Forum software by © MyBB