title: How to forward to the correct URL after login
body: <p>I have a website which has a web page containing list of logs. 
  Now I usually give the link to access that page for some user
  eg : <a href="http://172.20.22.77/someapp/results.htm?id=45" rel="nofollow">http://172.20.22.77/someapp/results.htm?id=45</a> </p>
  
  <p>Now when some user clicks on this .It would give him a login screen .But after login it does not go to the page that was intented . I am using sessions to implement the website and it has many pages, hence session is used to track the user browsing the page. </p>
  
  <p>kindly let me know how can i redirect the URL being asked after user logs in .</p>