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="/" />
|
|