• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
db_session + flashdata + redirect --> drives me crazy ^^

ok guys, i have the following problem:

in a controller i use something like this:
$this->db_session->set_flashdata('session_notice', 'Message blah blah');
header("location: ".$this->config->site_url()."/thiscontroller/thisfunction");
but the data is not saved to my session/db and therefore can not be retrieved to be displayed in my view after the redirect

but if i use the same code but redirect not to "/thiscontroller/thisfunction" but e.g. just "/thiscontroller/" or "/thiscontroller/anotherfunction" or "/anothercontroller/" the data is set and saved to my session/db

anyone got a clue why this is happening? it's kinda like driving me crazy right now that i just can't get it to work...i'm really stuck here.

Messages In This Thread
db_session + flashdata + redirect --> drives me crazy ^^ - by El Forum - 05-14-2008, 05:21 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.