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

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/login.aspx?redirectURL=Page BB". I even tried accessing the HTTP Referrer header in global.asax's various Session and Request begin/creation events, but that resulted in the same thing.

 The referrer value that I'm looking for is the original source that the request originated from -- "Website A/Page AA". How and where can I query for this originating refe ...

Go to the complete details ...