由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
DotNet版 - The "automatically log me in" option
相关主题
ASP.NET -- helpinternet programming in C#
about preventing history back in ASP.NETVisual Studio.net is buggy.
A question on authentication and cookieauthentication
关于asp.net session的弱问题一个非常奇怪的问题
How to logout of windows authentication?.NET Session State存储失败问题即解决方法
Interesting change in vs 2005VS2005能和VS2003装在一个OS上么?
How do you disable automatic style generation in VS2005?Edit & Continue不work,怎么办?
Newbie Question about Debuggingvsc#.net的程序怎么这么耗内存?
相关话题的讨论汇总
话题: log话题: cookie话题: after
进入DotNet版参与讨论
1 (共1页)
D*****n
发帖数: 363
1
I'm using the standard form-authentication, I have a problem with
the login control. When I click the check box, log in, log out and
then log in again. It doesn't automatically log me in. Do I have
to insert manual code to make it work.
In debugging, the RememberMeSet property is set to true if I click
the option and there is an cookie generated. After I call
"FormsAuthentication.SignOut" to log out, the cookie is gone. Shall
I log out via a different api in that case?
l*s
发帖数: 783
2
It's supposed to work that way.
Try it on fatwallet.com.
"rememberme" only remember you if you did not logout.

【在 D*****n 的大作中提到】
: I'm using the standard form-authentication, I have a problem with
: the login control. When I click the check box, log in, log out and
: then log in again. It doesn't automatically log me in. Do I have
: to insert manual code to make it work.
: In debugging, the RememberMeSet property is set to true if I click
: the option and there is an cookie generated. After I call
: "FormsAuthentication.SignOut" to log out, the cookie is gone. Shall
: I log out via a different api in that case?

D*****n
发帖数: 363
3

Still not quite right here. After I check the "auto-log-me" box and
log in, Firefox shows the login cookie will expire in 30 minutes. By
msdn document, it should expire in 50 years. After I log out, the
cookie is gone from the Firefox browser. It's almost the same in IE.
My authentication setting is pretty simple:

loginUrl="SignIn.aspx"
protection="All" path="/" />


【在 l*s 的大作中提到】
: It's supposed to work that way.
: Try it on fatwallet.com.
: "rememberme" only remember you if you did not logout.

l*s
发帖数: 783
4
add attribute timeout="10368000" to the tag

【在 D*****n 的大作中提到】
:
: Still not quite right here. After I check the "auto-log-me" box and
: log in, Firefox shows the login cookie will expire in 30 minutes. By
: msdn document, it should expire in 50 years. After I log out, the
: cookie is gone from the Firefox browser. It's almost the same in IE.
: My authentication setting is pretty simple:
:
: : loginUrl="SignIn.aspx"
: protection="All" path="/" />

1 (共1页)
进入DotNet版参与讨论
相关主题
vsc#.net的程序怎么这么耗内存?How to logout of windows authentication?
C# equivalent of #ifdef _DEBUGInteresting change in vs 2005
c# smtpclient's atthenicationHow do you disable automatic style generation in VS2005?
HTTP GET over SSL in C#Newbie Question about Debugging
ASP.NET -- helpinternet programming in C#
about preventing history back in ASP.NETVisual Studio.net is buggy.
A question on authentication and cookieauthentication
关于asp.net session的弱问题一个非常奇怪的问题
相关话题的讨论汇总
话题: log话题: cookie话题: after