.net core 使用cookie进行认证,在Chrome、360等浏览器中登录正常。在IE浏览器中无法登录,抓包发现,没有把cookie发送给服务器。asp.net mvc中cookie在IE10上有类似问题,.net core 如何处理这个?
                    
                    
                1 回答
                            RISEBY
                            
                                
                            
                        
                        
                                                
                    TA贡献1856条经验 获得超5个赞
登录代码中有没有指定cookie的超时时间
await context.SignInAsync(
    CookieAuthenticationDefaults.AuthenticationScheme,
    claimsPrincipal,    new AuthenticationProperties
    {
        IsPersistent = isPersistent,
        ExpiresUtc = DateTimeOffset.Now.Add(_cookieAuthOptions.ExpireTimeSpan)
    });- 1 回答
 - 0 关注
 - 911 浏览
 
添加回答
举报
0/150
	提交
		取消
	