public IActionResult Index() { CookieMgrService.Set("user_is_admin", "true", 1, true); ViewData["user_is_admin"] = true; return(View()); }
protected void SetCookieValue(string key, string value, int?expireTime, bool isEssential) { CookieMgrService.Set(key, value, expireTime, isEssential); }
protected string GetCookieValue(SessionValues key) { string value = CookieMgrService.Get(key.ToString()); return(value); }
protected void SetCookieValue(SessionValues key, string value, int?expireTime, bool isEssential) { CookieMgrService.Set(key.ToString(), value, expireTime, isEssential); }
private string GetCookieValue(string key) { string value = CookieMgrService.Get(key); return(value); }