• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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