If you implement Membership, then it will all be handled for you.
Normally, the user will try to go to a page - your home page for example - and be redirected to the log in page. When he has logged in, he is then taken to the page he was originally seeking.
See here:
Introduction to Membership[
^]