Welcome Guest, Not a member yet? Register   Sign In
session with CI 3
#1

Hi,

I try to migrate from CI2 to CI3 with sessions.
It works fine on my PC with Debian virtual machine but not on my Debian server online It's totally different with same CI files: it creates directory with name of controller and called method. Session cookie works fine and are recorded in defined path but not cookie_prefix. It's seems CI can't write in defined directory.

Here cookies part of my config file:
*******************************
$config['sess_driver'] = 'files';
$config['sess_cookie_name'] = 'c';
$config['sess_expiration'] = 3600;//7200;
$config['sess_save_path'] = '/home/test/public_html/sessions/';
$config['sess_match_ip'] = FALSE;
$config['sess_time_to_update'] = 300;
$config['sess_regenerate_destroy'] = FALSE;

/*
|--------------------------------------------------------------------------
| Cookie Related Variables
|--------------------------------------------------------------------------
*/
$config['cookie_prefix']    = "";
$config['cookie_domain']    = "";
$config['cookie_path']        = "/";
$config['cookie_secure']    = FALSE;
$config['cookie_httponly']     = FALSE;
*******************************

Thanks in advance for reading it.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB