• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Flashdata/redirect issue in firefox

#1
[eluser]aL3xa[/eluser]
Hi guys,

I'm using flashdata to store some messages if certain condition is not satisfied, then redirecting to home page. It goes something like this:


Code:
$this->session->set_flashdata('error', true);
redirect(base_url(), 'location', '301');

Then on the homepage I check flashdata, and if
Code:
$this->session->flashdata('error') == true
, I display error.

This works like a charm in Chrome/webkit based browsers/Opera, even IE, but Fifefox is a bit greedy with caching, I presume, so it displays nothing! After I delete the cache it works. But as soon as you make one request, it fails again! =/

Any ideas?


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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