ASP.NET 中RedictFromLoginPage()方法会 overwrites your cookie,所以在跳转页面的时候用Response.Redirect() 就不会出现 Ticket.UserData 取不到值的问题了。
Asp.net forms authentication ticket userdata is empty
原创文章标签 asp.net userdata co 文章分类 .Net 后端开发
©著作权归作者所有:来自51CTO博客作者poSAM的原创作品,请联系作者获取转载授权,否则将追究法律责任
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
Asp.Net Core 配置动态WebApi
.Net Core 配置动态WebApi
动态生成 Web 应用服务 -
ASP.NET Forms身份认证
用户登录是个很常见的业务需求,在ASP.NET中,这个过程被称为身份认证。由于很常见,因此,我认为
asp.net 身份认证 ide