Chrome更新、会话丢失、asp.net 4.6支付webapp
在chrome更新后,当重定向到我们的支付服务时,会话丢失,解决方案是在web.config文件上添加一些更改,并安装Chrome更新、会话丢失、asp.net 4.6支付webapp,asp.net,session,session-cookies,Asp.net,Session,Session Cookies,在chrome更新后,当重定向到我们的支付服务时,会话丢失,解决方案是在web.config文件上添加一些更改,并安装IIS URL重写模块2,部署后该模块在服务器上运行!我的问题是我如何在本地机器上复制它,我也在本地机器上安装了iisurl重写模块2 web.config中的代码: <system.webServer> <rewrite> <outboundRules> <rule name="SessionCookieAdd
IIS URL重写模块2
,部署后该模块在服务器上运行!我的问题是我如何在本地机器上复制它,我也在本地机器上安装了iisurl重写模块2
web.config中的代码:
<system.webServer>
<rewrite>
<outboundRules>
<rule name="SessionCookieAddNoneHeader">
<match serverVariable="RESPONSE_Set-Cookie" pattern="(.*ASP.NET_SessionId.*)" />
<!-- Use this regex if your OS/framework/app adds SameSite=Lax automatically to the end of the cookie -->
<!-- <match serverVariable="RESPONSE_Set-Cookie" pattern="((.*)(ASP.NET_SessionId)(=.*))(?=SameSite)" /> -->
<action type="Rewrite" value="{R:1}; SameSite=None" />
</rule>
</outboundRules>
</rewrite>
</system.webServer>