private void SaveUserToCookies(User user) { string token = _context.CreateTokenForUser(user); CookieOptions cookies = new CookieOptions(); cookies.Expires = DateTime.Now.AddDays(30); Response.Cookies.Append("Token", token); }
private void SaveUserToCookies(User user) { string token = _context.CreateTokenForUser(user); CookieOptions cookies = new CookieOptions(); cookies.Expires = DateTime.Now.AddDays(30); Response.Cookies.Append("Token", token); }