Setting sess_save_path correctly |
Hi, I've just uploaded my first ci app to my host provider's server after working on it in apache's localhost. The welcome controller worked fine, but when I tried to access my ion auth login, I got the following error...
Code: A PHP Error was encountered After a little googling, I found adding changing $config['sess_save_path'] from NULL to sys_get_temp_dir(); in config.php fixed the problem. Reading up on this led me to https://www.codeigniter.com/user_guide/l...sions.html and there it was suggested I load $this->load->library('session'); after parent::__construct() in MY_Controller. Trying this (after setting $config['sess_save_path'] back to NULL) gave me an error again, so I'm back to the sys_get_temp_dir(); as the value to $config['sess_save_path']. So my question is, is this a usual thing when setting up the live app environment, or should I be concerned about something at this stage? As a noob, it's quite hard to ask questions about something I am new to, but I'm just trying to make sure I'm not going too far off track here while trying to understand as much as possible. Thanks. |
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
|