在ASP.NET MVC5 中使用 FormsAuthenticationTicket 的注意事项
在根目录 web.confgi文件中添加如下配置信息。
<configuration>
<system.web>
<authentication mode="Forms">
<forms loginUrl="~/Account/LogOn" timeout="2880" />
</authentication>
</system.web>
</configuration>
浙公网安备 33010602011771号