public void Save() { CacheLib.Cache cache = new CacheLib.Cache(); CacheLib.Cookie cookie = new CacheLib.Cookie(); string key = cache.Add<DataTable>("codes", this.Codes); cookie.AddCookie("codes", key); }
private void userSignIn(MyPrincipal user) { AccountLib.UserHandle userHandle = new AccountLib.UserHandle(); CacheLib.Cache cache = new CacheLib.Cache(); string key = cache.Add<MyPrincipal>("user", user); userHandle.saveTicket(key); }