I'm using the PEAR Auth package to authenticate against LDAP and tie down my entire site, make it authentication only.
I've added the code into Page_Controller function init() and it's working and I can authenticate. However once authenticated I end up at sapphire/main.php instead of the page I was trying to visit. How can I make this work properly?
Basically all i'm trying to do is add in a bit of Authentication code that is run on each page load to make sure a session is present. The code runs and I can authenticate but it then redirects me to /sapphire/main.php instead of the page I was trying to go to before authenticating.
The code is using the Auth PEAR package and my own custom login form.
I'm just trying to figure out why it's not remembering what page I was trying to get to and sending me to main.php...?