Welcome Guest, Not a member yet? Register   Sign In
Unexpected flashdata behavior
#2

[eluser]mddd[/eluser]
The session cookie functions and the redirect function both use HTTP headers. Maybe they are getting in each others way somehow.
I have found some documentation saying that you should put out a redirect header BEFORE setting the cookies. In that case, CI's redirect() will not work. You could try setting the headers through PHP's header() function:
Code:
header('Location: '.site_url('admin/manage_entries');
$this->session->set_flashdata('status', 'error');
$this->session->set_flashdata('message', "Unable to load this entry for edit");    
exit();


Messages In This Thread
Unexpected flashdata behavior - by El Forum - 06-17-2010, 09:27 AM
Unexpected flashdata behavior - by El Forum - 06-17-2010, 09:47 AM
Unexpected flashdata behavior - by El Forum - 06-17-2010, 09:53 AM
Unexpected flashdata behavior - by El Forum - 06-17-2010, 10:03 AM
Unexpected flashdata behavior - by El Forum - 06-17-2010, 11:07 AM
Unexpected flashdata behavior - by El Forum - 06-18-2010, 12:09 AM



Theme © iAndrew 2016 - Forum software by © MyBB