Welcome Guest, Not a member yet? Register   Sign In
Session writing to cookie despite config settings
#1

[eluser]dcheslow[/eluser]
OK.... I'm stumped.

I noticed that one of my forms takes a LONG time to reload if there are more than a couple of errors on the form.

I tracked the trouble down to the following: every error is calling session->setcookie(). Once this gets to about half a dozen calls the page load slows way way down (several minutes). I looked at the ci_session cookie and it's huge... full of messages.

Here're my config settings:

$config['sess_cookie_name'] = 'ci_session';
$config['sess_expiration'] = 7200;
$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'] = 180;

I have a ci_sessions table in my DB which is otherwise working fine. Sessions seem to be being created in the ci_sessions table... but no data seems to get written there.

I am sure I am doing something silly... any help appreciated.

=dave=




Theme © iAndrew 2016 - Forum software by © MyBB