• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Session not working in some pages

#1
[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.


Messages In This Thread
Session not working in some pages - by El Forum - 06-20-2012, 06:27 AM
Session not working in some pages - by El Forum - 06-20-2012, 06:33 AM
Session not working in some pages - by El Forum - 06-20-2012, 06:36 AM
Session not working in some pages - by El Forum - 06-20-2012, 07:33 PM
Session not working in some pages - by El Forum - 06-20-2012, 10:14 PM
Session not working in some pages - by El Forum - 06-20-2012, 10:40 PM
Session not working in some pages - by El Forum - 06-21-2012, 01:34 PM
Session not working in some pages - by El Forum - 06-21-2012, 10:10 PM
Session not working in some pages - by El Forum - 06-21-2012, 10:12 PM
Session not working in some pages - by El Forum - 06-21-2012, 10:16 PM
Session not working in some pages - by El Forum - 06-21-2012, 11:49 PM
Session not working in some pages - by El Forum - 06-22-2012, 03:35 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.