我有一个通用处理程序,我想基于某些querystrings自动登录。通用处理程序中的FormsAuthentication.SetAuthCookie ashx
但后来我设置FormsAuthentication.SetAuthCookie(user.Name,false),但HttpContext.Current.User.Identity.IsAuthenticated返回false,并且由于web.config中设置的限制,我无法重定向。
那么如何在.ashx文件中设置FormsAuthentications?
是否要使用该ashx作为登录方式? – csg 2013-04-03 06:20:35