private void InitPortalSession()
    {
        Init init = new Init();
        Hashtable State = (Hashtable)HttpRuntime.Cache[Session.SessionID];

        //set browser type
         State["Browser"] = Request.Browser.Browser;
         State["BrowserVersion"] = Request.Browser.Version;
         State["UserHostAddress"] = Request.UserHostAddress;

         //delete any old temp files
         Util util = new Util();
         util.DeleteOldTempFiles(State);
         util.DeleteOldErrorsInLog(State);
    }
示例#2
0
    private void InitPortalSession()
    {
        Hashtable State = (Hashtable)HttpRuntime.Cache[Session.SessionID];
        //set browser type
        State["Browser"] = Request.Browser.Browser;
        State["BrowserVersion"] = Request.Browser.Version;
        State["RequestUrlHost"] = Request.Url.Host;

        //delete any old temp files
        Util util = new Util();
        util.DeleteOldTempFiles(State);
    }