登录和身份验证 [英] login and Authentication

查看:104
本文介绍了登录和身份验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

hi


我的网络应用每隔一分钟退出一次,.aspxauth cookie设置为(20天),asp.net_sessionid设置为(会话结束),我想让我的网站(记住我)。



i使用以下代码 - 但无效 - :



hi
my web app sign out every one minute, .aspxauth cookie set to (20 days) and asp.net_sessionid set to (session end), i want to make my site (remember me).

i am using the below code -but to no avail-:

<authentication mode="Forms">
    <forms

    loginUrl="~/Account/Login.aspx"

    protection="All"

    timeout="30160"

    name=".ASPXAUTH"

    path="/"

    requireSSL="false"

    slidingExpiration="false"

    defaultUrl="~/Default.aspx"

    cookieless="UseCookies"

    enableCrossAppRedirects="false" />
</authentication>





怎么做?



how to do that?

推荐答案

尝试增加应用程序池的空闲超时,看看这是否有帮助。



IIS - >目录 - >配置 - >选项和AppPool - >属性。

OR

在配置文件中使用:

Try increasing the Idle Time-out for the application pool to see if this helps at all.

IIS --> Directory --> Config --> Options AND AppPool --> Properties.
OR
Use this in your configuration file:
<system.web>
    <sessionState timeout="600"></sessionState>
</system.web>







--Amit




--Amit


我在发布 [ ^ ]

感谢所有
i found the solution in this post[^]
thanks to all


这篇关于登录和身份验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆