[eluser]Unknown[/eluser]
here's what i'm trying to do. After a form post and successful DB insert, redirect a user to another page where i'll display a successful flash message. basic stuff. except on my web server (linux) this bombs 100% every where i try this. It had worked fine locally(windows).
Code:
if($question_model->insert($question))
{
$this->session->set_flashdata('msg', '<div id="flash_msg" class="good">Question added successfully</div>');
redirect("/community/questions");
}
else ....
that fails very time if i have $config['sess_encrypt_cookie'] = TRUE;
what happens is Chrome displays an error page: Error 324 (net::ERR_EMPTY_RESPONSE):The server closed the connection. Fails in IE and FF as well. blank pages.
If i set encryption to false it works fine. It seems sometimes with encryption, 2 duplicate session cookies are written whereas without encryption 1 session cookie is written. The browsers are not liking the duplicate cookies and refuse to load the web page and i get no header info displayed. the db insert works fine too.
any thoughts? has anyone run into this before?