/ Published in: PHP
redirecting back to where the user came from is a very common functionality in login forms.
technical implementation:
- have a hidden field (`returnUrl`)
- populated by current url (in Zend Framework, i get this using the request's `getRequestUri()` function)
- in the `AuthController`, if the `returnUrl` field is set, i will redirect the user to that page using the `Redirector` helper.
technical implementation:
- have a hidden field (`returnUrl`)
- populated by current url (in Zend Framework, i get this using the request's `getRequestUri()` function)
- in the `AuthController`, if the `returnUrl` field is set, i will redirect the user to that page using the `Redirector` helper.