At the top of each page I check to see if there is a valid session, if not I send the user to a login form followed by a page to check their login info against a db. if they are accepted, a session is started.
I want to then send them back to the page they originally typed in their url box.
What is the best way to do this? Passing it in the URL through my validation pages and forms seems kind of messy. Is this the best way to do it?
thanks for any help!