Welcome Guest, Not a member yet? Register   Sign In
Flashdata being set but can't be echoed
#1

[eluser]ChazUK[/eluser]
I'm having a real problem here.

I've been trying to use the session->flashdata() functions because I can see a real use for them, but I can't seem to echo any of the data out on the next page.

Example
/anypage/
Code:
$this->ci->session->set_flashdata('referrer', uri_string());
redirect('/login/');

/login/
Code:
var_dump($this->session->flashdata('referrer'));

and it always comes out as bool(false).

I have looked in the DB and I can see that the stuff is being written as flashdata:new:referrer, but I can't access it on /login/.


Messages In This Thread
Flashdata being set but can't be echoed - by El Forum - 11-09-2009, 09:56 AM
Flashdata being set but can't be echoed - by El Forum - 11-09-2009, 02:03 PM
Flashdata being set but can't be echoed - by El Forum - 11-10-2009, 04:20 AM
Flashdata being set but can't be echoed - by El Forum - 11-10-2009, 04:51 AM
Flashdata being set but can't be echoed - by El Forum - 11-10-2009, 05:00 AM
Flashdata being set but can't be echoed - by El Forum - 11-10-2009, 05:05 AM
Flashdata being set but can't be echoed - by El Forum - 11-10-2009, 05:06 AM
Flashdata being set but can't be echoed - by El Forum - 11-10-2009, 06:25 AM



Theme © iAndrew 2016 - Forum software by © MyBB