>How do I redirect, after login registration completion, to the last
>page visited before the first login/registration page ?

You can pass a "next" parameter to the login view, so the form can put
that into a "next" hidden field to jump back from where you came. Or
another way would be for your login view to use the referer to jump
back from where you came (and hand that "next" information down to any
subsequent page, of course).

I don't think that storing the URL in the session would be a sensible
idea, because the user can easily "clone" pages pointing to the same
session data - just opening a link in a new tab/window won't create a
new session, so those windows could possibly stomp on each others
stored data.

The login form view already handles a "next" input field in that it
redirects to that URL on submit, so that's the way I would (and I did)
address this problem.

bye, Georg

Reply via email to