• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Cannot store sessions data

#1
[eluser]Unknown[/eluser]
Hi all


I got a session problem here Smile.
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?


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


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