$client_id = $_SESSION['user']['client_id']; // Path to user files relative to the document root. $Config['UserFilesPath'] = 'http://domain.com/repository/upload/fck_images/'.$client_id.'/'; $Config['UserFilesAbsolutePath'] = '/var/www/vhosts/domain.com/httpdocs/repository/upload/fck_images/'.$client_id.'/' ;
Tue, 05/20/2008 - 21:51
#1

Re: How to use a SESSION variable within the config.php file
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: How to use a SESSION variable within the config.php file
For instance, on my page called index.php , I can echo $_SESSION['user']['client_id'] , and it echoes the client_id of 1 just fine. So then, in the config.php file, I do the same echo (through a die() so an error comes up in FCK so I can see if anything echoed or not), but it is empty. I also tried setting the variable $client_id to be global and then call it from within config.php, still to no avail. I just don't understand why the session variables would work outside of any FCK page, but not on the FCK pages themselves.
Re: How to use a SESSION variable within the config.php file
http://www.example.comhttp://example.comhttp://www.example.comhttp://example.com
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: How to use a SESSION variable within the config.php file
Re: How to use a SESSION variable within the config.php file
Frederico Knabben
CKEditor Project Lead and CKSource Owner
--
Follow us on: Twitter | Facebook | Google+ | LinkedIn