Welcome Guest, Not a member yet? Register   Sign In
Session files keep being created

For the same user browsing the site, I keep seeing many session files being generated. The session config I have is
$config['sess_driver'] = 'files';
$config['sess_save_path'] = APPPATH.'sessions';
$config['sess_cookie_name']        = 'ev_session';
$config['sess_expiration']        = 7200;
// $config['sess_expiration']        = 0;
$config['sess_time_to_update']    = 300;
$config['sess_match_ip']        = FALSE;

| Cookie Related Variables
| 'cookie_prefix' = Set a prefix if you need to avoid collisions
| 'cookie_domain' = Set to .your-domain.com for site-wide cookies
| 'cookie_path'   =  Typically will be a forward slash
| 'cookie_secure' =  Cookies will only be set if a secure HTTPS connection exists.
$config['cookie_prefix']    = "";
$config['cookie_domain']    = "oursite.com";
$config['cookie_path']        = "/";
$config['cookie_secure']    = FALSE;
Here is what I see in many of the session files
Any ideas how this can be avoided?

Every new session creates a new file. The number can build up but do not fear. Expired session files will be deleted automatically it just will not happen very often. When it does occur things will be cleaned up nicely.

Not sure why CI treats other page visits as a new session. Same browser, just visiting other pages in the site.

Theme © iAndrew 2016 - Forum software by © MyBB