Welcome Guest, Not a member yet? Register   Sign In
Sending user back to referrer
#5

[eluser]rdjs[/eluser]
There were a couple of small typos in the code above. Nothing major but thought I would clarify to save confusion. Also current_url() was added in version 1.7 and would work nicely here:

To set the referrer in the flashdata:

Code:
$this->session->set_flashdata('referrer', current_url());

And to retrieve the referrer data

Code:
redirect($this->session->flashdata('referrer'), 'refresh');


Messages In This Thread
Sending user back to referrer - by El Forum - 08-22-2008, 04:09 AM
Sending user back to referrer - by El Forum - 08-22-2008, 08:50 AM
Sending user back to referrer - by El Forum - 08-22-2008, 09:03 AM
Sending user back to referrer - by El Forum - 08-22-2008, 10:58 AM
Sending user back to referrer - by El Forum - 05-26-2009, 11:20 AM



Theme © iAndrew 2016 - Forum software by © MyBB