How do we maintain the url after login in to the website.
For example, If we have a url http://www.dotnetfunda.com/post/postquestions.aspx
, and we can't post questions without logged in. so, it should be redirected to a login page. After logging, user should be redirected to the same url.
I know we can do this by passing url as a query string and redirecting to the same url again. But I don't think this is the right way of doing it. Can you provide any other methods??