/// <summary> /// renew session /// </summary> /// <returns></returns> public ActionResult CheckSession() { if (LoginsProcessing.CheckLogin()) { return(Content("1")); } return(Content("0")); }
public ActionResult Index(string ru = "/") { Common.WriteLogAccess(); if (LoginsProcessing.CheckLogin()) { Response.Redirect(string.IsNullOrEmpty(ru)?"/":ru); return(null); } ViewBag.RediectURL = ru; return(View("~/Views/Login/Login.cshtml")); }