Welcome Guest, Not a member yet? Register   Sign In
Trouble with session stored in database, logout unexpected
#1

[eluser]Trankh1[/eluser]
I'm using CodeIgniter version 2.0.2 and i store session data in database.

The problem is sometimes the session is logout unexpectedly while i'm browsing my application.
It happens on different browsers (firefox , chrome).

This really annoys me!
Someone has found a solid fix?


Thanks a lot


These are my session properties:

Code:
$config['sess_cookie_name']             = 'ci_session';
$config['sess_expiration']              = 10800;
$config['sess_expire_on_close']    = FALSE;
$config['sess_encrypt_cookie']  = TRUE;  
$config['sess_use_database'] = TRUE;
$config['sess_table_name']              = 'ci_sessions';
$config['sess_match_ip']                = FALSE;
$config['sess_match_useragent'] = FALSE;
$config['sess_time_to_update']  = 300;
#2

[eluser]smilie[/eluser]
I am using DB session as well and have not experienced problems as you have described them.

Are you 100% sure you are not deleting session somewhere?
#3

[eluser]soupli[/eluser]
Learn how to debug your applications a proper way, this will help you find these annoying bugs!

Search for Xdebug and FirePHP etc.




Theme © iAndrew 2016 - Forum software by © MyBB