I found it better to use a $_GET parameter for this. This allows you to create hyperlinks out of the URL that redirects the user to a specific page after logging in.
-- Hector On Thu, Oct 8, 2009 at 1:25 PM, David Mintz <[email protected]> wrote: > Let's say you have a front controller plugin with a preDispatch method that > looks at the module/action/controller, checks if > Zend_Auth::getInstance()->hasIdentity(), and resets the > module/action/controller to default/users/login if appropriate. > > How do you save the initial request URI and redirect following a successful > login? I can think of two techniques: (1) save it in the session or (2) > stuff it in the login form as a hidden field and let it go along for the > ride. > > Any suggestions as to which is preferable, or other alternatives? > > -- > David Mintz > http://davidmintz.org/ > > The subtle source is clear and bright > The tributary streams flow through the darkness >
