I am trying to redirect when in method Session_OnEnd() in Global.asax
If I type
public void Session_OnStart()
{
HttpContext.Current.Response.Redirect("http://www.google.es");
}
And go to Google but when I try this onEnd...
public void Session_OnEnd()
{
HttpContext.Current.Response.Redirect("http://www.google.es");
}
Shows
"NullReferenceException was unhandled by user code", Object reference not set to an instance of an object.
Anyone helps me with this please??