Esempio n. 1
0
        protected void Session_Start(Object sender, EventArgs e)
        {
            ErrorLog.ErrorRoutine(false, "SessionStart: " + Session.SessionID);

            Session["MaxLoginAttempts"] = 3;            // Max # of Administrator login attempts
            Session["LoginCount"]       = 0;            // not used
            Session["EmailId"]          = "unknown";    // user's email handle
            Session["userId"]           = "0";          // user's id

            Session["LoggedIn"] = "No";                 // Track whether they're logged in or not
            if (Global.CheckLoginCookies(false))
            {
                Session["LoggedIn"] = "Yes";
            }

            Session["AdType"]  = "";                //Type of ad; 0 = Sell; 1 = Wanted
            Session["GoToURL"] = "";
            Session["BlogFlg"] = "";                // Blog Flag
        }