PreRequesthandlerExecute event is raised before the Init() method of Page or Service called. but it is not true that each and every need session and do not want to utilize their session on the same event when it is raising..
to solve this problem just single line code will helpful..
protected void Application_PreRequestHandlerExecute(Object sender, EventArgs
e)
{
if (Context.Handler is IRequiresSessionState || Context.Handler is IReadOnlySessionState)
{
// your code over here
}
}
Posted by vikasmehta