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

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

<configuration>
    <system.web>
        <authentication mode="Forms">
            <forms loginUrl="~/Account/LogOn" timeout="2880" />
        </authentication>
    </system.web>
</configuration>
posted @ 2014-06-28 23:20  eez  阅读(534)  评论(0编辑  收藏  举报