[eluser]Unknown[/eluser]
Hi,
I'm trying everything to get session to work right now, and I am at my wit's end. I feel like I've tried everything under Google and still have made no progress. I'm running CI 2.0.3, and have included 'session' in the $autoload['libraries'] array. I'm running all of this locally. I've tried using localhost, 127.0.0.1 and my LAN IP address, accessing the site as well as setting cookie_domain. I've tried to use the DB and to disable the DB usage. No matter what I do, I cannot get anything to persist. Here's what my config currently looks like:
Code:
// Session settings
$config['sess_cookie_name'] = "cisession";
$config['sess_expiration'] = 0;
$config['sess_encrypt_cookie'] = FALSE;
$config['sess_expire_on_close'] = FALSE;
$config['sess_use_database'] = TRUE;
$config['sess_table_name'] = 'ci_sessions';
$config['sess_time_to_update'] = 300;
$config['sess_match_ip'] = FALSE;
$config['sess_match_useragent'] = TRUE;
$config['cookie_secure'] = FALSE;
$config['cookie_prefix'] = "";
$config['cookie_domain'] = "";
$config['cookie_path'] = "/";
I'm watching when I refresh the page, it's not creating any cookie. I try with the DB, and it doesn't create a row in the DB. I've tried setting my system time to UTC (which is the default timezone in our code) and doing all of this, and it doesn't work either. I'm testing this in both Chrome and Firefox.
If anyone can point me to something I might have missed, I'm sure this must be something easy.
Thanks,
Dave