Example #1
0
        public ActionResult GetTabId(string oldTabId)
        {
            string newTabId = UriUtility.ConvertStringtoMD5(DateTime.Now.ToString());

            if (!string.IsNullOrEmpty(oldTabId) && !newTabId.Equals(oldTabId))
            {
                // Clone old session
                CacheUtil.CloneTabCache(oldTabId, newTabId);
            }

            return(Json(new { tabId = newTabId }, JsonRequestBehavior.AllowGet));
        }