摘要: 自动登录,是将客户端登录验证通过的信息记录在客户端的cookie里,当下次登录时,通过cookie中记录的用户ID和Token,与数据库中的用户登录状态进行比较,比较通过以后自动登录。1、验证通过以后,写入cookie HttpCookie identityCookie = new HttpCookie("identity"); identityCookie.HttpOnly = false; identityCookie.Expires = DateTime.MaxValue; identityCookie["userID"... 阅读全文