Forum Moderators: open
We have the same thing in one of our sites. Basically on our site the user can login from any page. So obviously once they enter there login details and hit submit, and their details are verified, we want them to be returned to the page they were on.
We have used a "Request.ServerVariables("HTTP_REFERER")" function.
When the user hits submit, their details are sent to an asp page used specifically to veriy the details. In this page we use the above code to pull the URL of the page the user has just come from.
We then have a redirect that kicks in once verification has taken place.
Hope this helps!
Webboy