Welcome Guest, Not a member yet? Register   Sign In
Remember Last Page Visited... How?
#8

[eluser]PhilTem[/eluser]
An argument to isset must be a pointer to a variable (i.e. the variable name). In your case you are specifying just a string to isset, that's why it's complaining. Just remove the isset call and use

Code:
if ( $this->session->userdata('redirect') )

What I actually wanted to contribute: All these approaches are nice and cool, but what to do you do when a user opens some of your pages in multiple tabs? Trying to log in from the first tab will give a redirect to the last tab's url.
I don't know yet how to solve it with sessions or anything else but only to set a GET-parameter to the login-page with the former url. Or, with an inline form, make the current URL or URI a hidden field and redirect to that on successful login.


Messages In This Thread
Remember Last Page Visited... How? - by El Forum - 07-22-2012, 03:34 AM
Remember Last Page Visited... How? - by El Forum - 07-22-2012, 04:11 AM
Remember Last Page Visited... How? - by El Forum - 07-22-2012, 04:56 AM
Remember Last Page Visited... How? - by El Forum - 07-22-2012, 05:22 AM
Remember Last Page Visited... How? - by El Forum - 07-22-2012, 07:45 AM
Remember Last Page Visited... How? - by El Forum - 08-01-2012, 07:28 AM
Remember Last Page Visited... How? - by El Forum - 08-01-2012, 07:52 AM
Remember Last Page Visited... How? - by El Forum - 08-01-2012, 08:20 AM
Remember Last Page Visited... How? - by El Forum - 08-01-2012, 08:36 AM



Theme © iAndrew 2016 - Forum software by © MyBB