Storing Requested URL in Global.asax without Session State in ASP.NET

Posted by Mark Richman on Stack Overflow See other posts from Stack Overflow or by Mark Richman
Published on 2010-04-23T17:54:01Z Indexed on 2010/04/23 18:03 UTC
Read the original article Hit count: 358

I have a complex URL rewriting scheme which breaks the built in Forms Authentication ReturnUrl mechanism. I would like to grab the requested URL for later redirection away from my login.aspx. I can get this URL in Application_BeginRequest via HttpContext.Current.Request.AppRelativeCurrentExecutionFilePath. However, Session state is not available in Application_BeginRequest. How can I store this URL prior to ASP.NET redirecting me to login.aspx?

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about global-asax