Welcome Guest, Not a member yet? Register   Sign In
Login redirect, session, and flexiauth
#1

[eluser]Unknown[/eluser]
So I am using Flexi Auth to handle my logins, but I want to redirect back to the referring page after login. The way I thought of doing it is like this:

on a page set a session to refer variable that is just the controller, not the url;
after you click the login page and you are authenticated it get's the refer session variable and does a redirect back;

Is there something I am missing security wise that would make this a bad idea?
#2

[eluser]Ckirk[/eluser]
Should be fine as long as your controller always check that the user is logged in and authorised to view the page
#3

[eluser]Unknown[/eluser]
Thank you, that's what I thought too. All the controllers that require it, do check to see if they are logged in and if they are authorized to view a page.




Theme © iAndrew 2016 - Forum software by © MyBB