Setting sess_save_path correctly |
i remember i had similar problem with my app when uploaded to the hosting server. i guess the problem comes from the caged virtual FS that you see on the hosting server, while you see path /htdocs/session_path , the real path is, for example: /var/<username>/htdocs/session_path.
what i finally did to overcome this, is: the prod installation has in index.php: define('ENVIRONMENT', isset($_SERVER['CI_ENV']) ? $_SERVER['CI_ENV'] : 'production'); while the installation on my dev PC has: define('ENVIRONMENT', isset($_SERVER['CI_ENV']) ? $_SERVER['CI_ENV'] : 'development'); so, remove completely the line about sess_path line from the application/config.php file and define the path (use absolute path, i could see the absolute path in the log, i dont see it in your case, you will have to discover it somehow, maybe even ask the server admin) on each file (config/production/config.php and config/development/config.php), and by changing the ENVIRONMENT in the index.php, you can make CI load the path you need per system. before all that, i had relevant path (../xxx/xxx/session_path for example), but when i migrated to the hosting server, i ended up in the above trouble and had to switch to absolute paths. hope it helps |
Messages In This Thread |
Setting sess_save_path correctly - by n2fole00 - 03-05-2016, 08:45 AM
RE: Setting sess_save_path correctly - by iz_no_good - 03-05-2016, 12:37 PM
RE: Setting sess_save_path correctly - by Narf - 03-05-2016, 12:59 PM
RE: Setting sess_save_path correctly - by n2fole00 - 03-05-2016, 03:30 PM
RE: Setting sess_save_path correctly - by n2fole00 - 05-25-2018, 03:38 PM
RE: Setting sess_save_path correctly - by InsiteFX - 05-26-2018, 06:08 AM
RE: Setting sess_save_path correctly - by n2fole00 - 05-26-2018, 03:40 PM
RE: Setting sess_save_path correctly - by MikeDiz - 05-30-2018, 01:18 AM
RE: Setting sess_save_path correctly - by MikeDiz - 05-30-2018, 01:20 AM
RE: Setting sess_save_path correctly - by dave friend - 05-27-2018, 07:19 AM
RE: Setting sess_save_path correctly - by n2fole00 - 05-28-2018, 04:25 AM
RE: Setting sess_save_path correctly - by InsiteFX - 05-30-2018, 03:08 AM
RE: Setting sess_save_path correctly - by MikeDiz - 05-30-2018, 03:11 AM
|