[eluser]Unknown[/eluser]
Hi all
I got a session problem here
.
I'm storing sessions data like this
Code:
$this->session->set_userdata('user', $user);
But when I reload the page or go to other page and access the data with this
Code:
$this->session->userdata('user')
I get no data.
Here is my session settings inside config.php
Code:
$config['sess_cookie_name'] = 'erp_sessions';
$config['sess_expiration'] = 0;
$config['sess_expire_on_close'] = FALSE;
$config['sess_encrypt_cookie'] = TRUE;
$config['sess_use_database'] = TRUE;
$config['sess_table_name'] = 'sessions';
$config['sess_match_ip'] = FALSE;
$config['sess_match_useragent'] = TRUE;
$config['sess_time_to_update'] = 300;
Is there something wrong with my configuration?