コード例 #1
0
        public static string SessionCompleted()
        {
            try
            {
                User u = (User)HttpContext.Current.Session["ActiveUser"];
                StaticService.ResetSession(u.UserID);
                HttpContext.Current.Session["ActiveUser"] = null;
                FormsAuthentication.SignOut();
            }
            catch (Exception e)
            {
                Log.Error(e.Message, e);
                return(e.Message);
            }

            return("You session has expired. You will now be redirected to the login page.");
        }