Welcome Guest, Not a member yet? Register   Sign In
Chrome Cookie Issue
#1

[eluser]dave177[/eluser]
Before Thanksgiving I had sessions/cookies working successfully in Chrome. However, now when I try to set a session in chrome it doesn't work... I don't see a cookie being created. However the cookie is created in firefox. I haven't changed any code which leads be to believe that some change was made within Chrome (a Google update perhaps?) that caused this to fail. The problem isn't isolated to my machine. Chrome is set to allow all cookies.

The relevant section of config.php is below. Has anyone else had this problem?

/*
|--------------------------------------------------------------------------
| Session Variables
|--------------------------------------------------------------------------
|
| 'session_cookie_name' = the name you want for the cookie
| 'encrypt_sess_cookie' = TRUE/FALSE (boolean). Whether to encrypt the cookie
| 'session_expiration' = the number of SECONDS you want the session to last.
| by default sessions last 7200 seconds (two hours). Set to zero for no expiration.
| 'time_to_update' = how many seconds between CI refreshing Session Information
|
*/
$config['sess_cookie_name'] = 'test';
$config['sess_expiration'] = 7200;
$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;

/*
|--------------------------------------------------------------------------
| 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
|
*/
$config['cookie_prefix'] = "";
$config['cookie_domain'] = "";
$config['cookie_path'] = "/";


Messages In This Thread
Chrome Cookie Issue - by El Forum - 12-14-2009, 07:19 PM
Chrome Cookie Issue - by El Forum - 12-14-2009, 08:26 PM
Chrome Cookie Issue - by El Forum - 12-14-2009, 09:24 PM
Chrome Cookie Issue - by El Forum - 09-03-2010, 10:25 PM
Chrome Cookie Issue - by El Forum - 09-03-2010, 10:38 PM



Theme © iAndrew 2016 - Forum software by © MyBB