Hi everyone,
I am using a simple Zend_Auth setup to authenticate users for one of my applications, using a check in the preDispatch() method in a controller plugin. When anonymous users navigate to
/users/view/id/6
for example, they should be redirected to the above URI after authentication.
What is the best way to do this? I'd prefer not to store $_SERVER['REQUEST_URI']
in the session. Personally, I'd find storing the entire Zend Request object to cleanest solution, but I am not sure if this is sensible and if this is the approach I should be taking.
Any thoughts?