Welcome Guest, Not a member yet? Register   Sign In
CI 3.0 is losing Session always
#1

Hello, I have started a web site with CI 3.0, but I am with a problem with storing session.

I create the session example:

PHP Code:
$newdata = array(
 
       'username'  => 'johndoe',
 
       'email'     => '[email protected]',
 
       'logged_in' => TRUE
);

$this->session->set_userdata($newdata); 


But in refresh, every sessions has removed.

My config:

PHP Code:
$config['sess_driver'] = 'database';
$config['sess_cookie_name'] = 'ci_session';
$config['sess_expiration'] = 7200;
$config['sess_save_path'] = 'ci_sessions';
$config['sess_match_ip'] = FALSE;
$config['sess_time_to_update'] = 300

My autoload

PHP Code:
$autoload['libraries'] = array('database''session');
$autoload['drivers'] = array('session'); 
Reply


Messages In This Thread
CI 3.0 is losing Session always - by NinoSPFC - 03-01-2015, 10:07 AM
RE: CI 3.0 is losing Session always - by spjonez - 03-01-2015, 10:35 AM
RE: CI 3.0 is losing Session always - by NinoSPFC - 03-01-2015, 10:58 AM
RE: CI 3.0 is losing Session always - by NinoSPFC - 03-01-2015, 02:53 PM



Theme © iAndrew 2016 - Forum software by © MyBB