[eluser]sanjitscorps[/eluser]
I'm using codeigniter for storing session data in the ci_sessions table. upon loading the webpage for the first time I get one cookie (which is okay) but at the same time I get two exactly same records (except for the session id) in my ci_session table. This is ridiculous as there should be only one for one user agent and IP combination.
Also when i tried another browser it started showing all of my installed browsers in the user_agent field for 1 record. this is driving me nuts. below is what i see in the user agent after using another browser to access my website. I'm going live very soon, please help!
user_agent
Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/29.0.1547.66 Safari/537.36
My session table is as follows
# Name Type
1 session_id varchar(40)
2 ip_address varchar(45)
3 user_agent varchar(255)
4 last_activity int(10)
5 user_data text
6 login_time timestamp
And my session configuration is as follows
$config['sess_cookie_name'] = 'cisession';
$config['sess_expiration'] = 7200;
$config['sess_expire_on_close'] = TRUE;
$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'] = TRUE;
$config['sess_time_to_update'] = 300;