• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Session Userdata saves in Cookie but not in DB

#1
[eluser]kyko[/eluser]
When i tried DB Session on my local machine running XAMPP, it works like a charm. But when i promote it in the hosted server, the session saves userdata in cookie. Am i missing something?

I am using DB Session and here's my setup

Code:
$config['sess_cookie_name']    = 'session';
$config['sess_expiration']    = 7200;
$config['sess_encrypt_cookie']    = FALSE;
$config['sess_use_database']    = TRUE;
$config['sess_table_name']    = 'ci_sessions';
$config['sess_match_ip']    = TRUE;
$config['sess_match_useragent']    = FALSE;
$config['sess_time_to_update']     = 300;

$config['cookie_prefix']    = "";
$config['cookie_domain']    = "";
$config['cookie_path']        = "/";


I have renamed the DB_Session to Session.

Any insight guys?

#2
[eluser]Sumon[/eluser]
Do you have ci_sessions table in server?

#3
[eluser]kyko[/eluser]
yes i have, the second image above shows the content of my DB.


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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