摘要:
自动登录,是将客户端登录验证通过的信息记录在客户端的cookie里,当下次登录时,通过cookie中记录的用户ID和Token,与数据库中的用户登录状态进行比较,比较通过以后自动登录。1、验证通过以后,写入cookie HttpCookie identityCookie = new HttpCookie("identity"); identityCookie.HttpOnly = false; identityCookie.Expires = DateTime.MaxValue; identityCookie["userID"... 阅读全文
posted @ 2013-09-03 23:18
菜鸟的故事
阅读(468)
评论(0)
推荐(0)
浙公网安备 33010602011771号