Login redirect, session, and flexiauth - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: Login redirect, session, and flexiauth (/showthread.php?tid=60095) |
Login redirect, session, and flexiauth - El Forum - 01-14-2014 [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? Login redirect, session, and flexiauth - El Forum - 01-14-2014 [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 Login redirect, session, and flexiauth - El Forum - 01-14-2014 [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. |