Author: rpaul | Posted on: 6/9/2008 9:51:39 PM | Views : 1159

How can I grab the HTTP Referrer header value for the source webpage ("Website A/Page AA") that contains a link which when clicked on goes to the destination webpage ("Webapp B/Page BB"), from within "Webapp B"? In this scenario, Page BB is a protected resource, and since this website is using the Forms Authentication Provider, a redirection to "Webapp B/login.aspx" automatically occurs. If I try to grab the HTTP Referrer in the login page's code behind (page load event), the referrer value is actually the requested URL, in this case "Webapp B/Page BB". I even tried accessing the HTTP Referrer header in the global.asax's Session Create event, but that resulted in the same thing.

 The referrer value that I'm looking for is "Website A/Page AA". How and where can I query for this originating referrer when using Forms Authentication?

 
...

Go to the complete details ...