use out proc session
or
Paste following code on global.asax page
<%@ Import Namespace="System.Reflection" %>
void Application_Start(object sender, EventArgs e)
{
// Code that runs on application startup
//Preventing sessions after delete folder
PropertyInfo p = typeof(System.Web.HttpRuntime).GetProperty("FileChangesMonitor", BindingFlags.NonPublic | BindingFlags.Public | BindingFlags.Static);
object o = p.GetValue(null, null);
FieldInfo f = o.GetType().GetField("_dirMonSubdirs", BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.IgnoreCase);
object monitor = f.GetValue(o);
MethodInfo m = monitor.GetType().GetMethod("StopMonitoring", BindingFlags.Instance | BindingFlags.NonPublic);
m.Invoke(monitor, new object[] { });
}
Mahesh K. Sharma
No comments:
Post a Comment