PDA

View Full Version : Redirecting someone to the referral page after they login.


googlejava
Aug 30th, 2005, 09:01 AM
Hi.,
I have just started working on MVC, and I am still a beginner here. I have a problem here, i.e., the user can access the pages in a website upto some extent and when they reach the last accesible page without login i ask them to login(send to the login page ). Until this its fine., but after logging in i should redirect them back to the referred page, the page they logged in. For this. i think i should get the referral url and then redirect them to that page after logged in, but when i try to get the referral url from the request i am getting null. What should i do now?

Thanks! for your help!