예제 #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
        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);
        }