首页 > 代码库 > 在ASP.NET MVC5 中使用 FormsAuthenticationTicket 的注意事项

在ASP.NET MVC5 中使用 FormsAuthenticationTicket 的注意事项

在根目录 web.confgi文件中添加如下配置信息。

<configuration>    <system.web>        <authentication mode="Forms">            <forms loginUrl="~/Account/LogOn" timeout="2880" />        </authentication>    </system.web></configuration>