I am trying to upload my codeigniter 3
site to godaddy, but I keep getting errors messages such as Session: Configured save path 'C:\Windows\Temp' is not writable by the PHP process.
.
I have followed this question and the codeigniter database driver here but so far nothing.
I created a ci_sessions table in my database, set the driver to database and the path to ci_sessions
but I then get a fatal error. I tried setting the driver to files and the path to a ci_sessions folder I created but it can't find it but I'm not sure I created it correctly, I used $config['sess_save_path'] = '{{site_path}}/application/ci_sessions';
Does anyone have any idea what I'm doing wrong? Thanks in advance.
UPDATE
Ok, so I started with a fresh version of codeigniter 3
and set the driver to database and path to ci_sessions and it works, but when I use if(!empty($this->session->userdata("user_id"))
it causes the fatal error, any ideas?
On your session save path looks like you are trying to save it to folder
create the a folder in application called ci_sessions make it 0700
If you need to put it into database
For MYSQL Database