I have an application created using codeigniter using the session class and storing session data in a database. The problem is that I get additional session records in my database when my web page loads a css file.
Until recently, I ran my application on a simple VPS host provided by rackspace. The database and Apache were running on the same VPS. Recently, however, I migrated my application to PHPFog to make it easier to scale. I did not have this problem with my previous hosting setup.

The string with the filled value for user_data is my initial session. The remaining three empty sessions are the result of a simple page refresh three times. I seem to have tracked it down to including the css file in my header, when I comment on it or delete it, the problem goes away. This is just this particular css file, other css / js / image files do not cause this problem.
Here is the link to the css file: http://pastebin.com/XfEBNFiC
Does anyone know what could be causing this? Thanks!
UPDATE: I realized that the html of this page can be useful. When commenting on a stylesheet, include in line 13 so that the problem disappears. http://pastebin.com/iBEb4he6
UPDATE2:
$config['sess_cookie_name'] = 'ci_session'; $config['sess_expiration'] = 7200; $config['sess_expire_on_close'] = FALSE; $config['sess_encrypt_cookie'] = FALSE; $config['sess_use_database'] = TRUE; $config['sess_table_name'] = 'ci_sessions'; $config['sess_match_ip'] = FALSE; $config['sess_match_useragent'] = TRUE; $config['sess_time_to_update'] = 300; /* |-------------------------------------------------------------------------- | 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_domain'] = 'casey.phpfogapp.com'; //$base_url_parts['host']; $config['cookie_path'] = '/'; $config['cookie_prefix'] = ""; $config['cookie_secure'] = FALSE;
php codeigniter session session-variables hosting
Casey flynn
source share