I need to troubleshoot a issue with session getting abandoned. In the following c# code, I need to write a the detailed httprequest and httpresponse in a text file to analyze further. One of the reason why I want to do this is to identify from which procedure the request was made which is causing the session to abandon. Sample code is given below. Any help will be highly appreciated.
void Application_PostRequestHandlerExecute(object sender, EventArgs e)
HttpApplication app = (HttpApplication)sender;
HttpRequest req = app.Request;
HttpResponse resp = app.Response;
///Code to capture the httprequest and httpresponse.
if (!ValidateRequest(req, resp))