I am working on an application where the user can complete forms on pages anonymously, but also has the option to log in on each page.
If they follow the log in link then they will be taken to the log in page, but I would like to track where they came from so that when they have completed the log in process I can send them back to the page that they were originally on.
Is tracking this in a persistable entity the most efficient way to achieve what I'm trying to do (and how would I link it to my user's local account) or is there a better way?