CodeIgniter Forums

Full Version: Session Userdata saves in Cookie but not in DB
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

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

$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?

El Forum

Do you have ci_sessions table in server?

El Forum

yes i have, the second image above shows the content of my DB.