[eluser]abhinavp[/eluser]
Hello There,
I came across with some strange problem, I am using codeigniter's session library to maintain user's login status. It is working fine.
But when on one page I am trying to save another session its not working. I am not able to get session's value in another function. I did some this like this:
Code:
$data = array(
'Title' => $this->input->post(TITLE),
'Price' => 45,
'Keywords' => $this->input->post(IMAGE_KEYWORDS),
);
$this->session->set_userdata('imagedata', $data);
redirect(SOME_WHERE);
After redirecting, I am trying to access 'imagedata' session value but it returns empty.
My session setting in config.php is as follows:
Code:
$config['encryption_key'] = 'jdgfkjsagd jagshdkjsaghdkjagsdj';
$config['sess_cookie_name'] = 'dsfkjdshfkjdshfk';
$config['sess_expiration'] = 7200;
$config['sess_expire_on_close'] = FALSE;
$config['sess_encrypt_cookie'] = FALSE;
$config['sess_use_database'] = FALSE;
$config['sess_table_name'] = 'ci_sessions';
$config['sess_match_ip'] = FALSE;
$config['sess_match_useragent'] = TRUE;
$config['sess_time_to_update'] = 300;
Please help me.