What I would like to do, and what I have seen done is this:
A user tries to access a page that they must be logged in to view (ie a shopping cart) so they type in what they think is the URL for the page. The script stops them and redirects to the login page. That is fine, everything works there. Now after the login page and the login is successful, how do I have it redirect back to that shopping cart? Not just the same, say index, page every time.
Basically I want to dynamically change the redirection after login depending on what page the user was trying to access when they were prompted for login.
More clarity if needed.
Thank you.