Welcome Guest, Not a member yet? Register   Sign In
Is there anything wrong with storing the "current_url()" function in a session variable for login return url?
#1

[eluser]dwhite7508[/eluser]
I have my site set up to create a session with the variable "lastPage" set to the "current_url()" function. Any page that has that and gets redirected to the login page sends that information. When the user logs in they are sent back to the $lastPage.

This may not be the BEST way, but it is working for me just fine on my somewhat small and uncomplicated site. Are there any risks to doing it this way as far as security goes?

I've looked into other methods and they just seem SOoooo complicated and heavy code wise.

Thanks in advance for the help.


Messages In This Thread
Is there anything wrong with storing the "current_url()" function in a session variable for login return url? - by El Forum - 04-24-2011, 02:27 AM



Theme © iAndrew 2016 - Forum software by © MyBB