コード例 #1
0
ファイル: CodeHandle.cs プロジェクト: ud223/jx
        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);
        }
コード例 #2
0
ファイル: AccountController.cs プロジェクト: ud223/jx
        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);
        }