Assembly: System.Web (in system.web.dll)
/** @property */ public boolean get_RememberMeSet () /** @property */ public void set_RememberMeSet (boolean value)
public function get RememberMeSet () : boolean public function set RememberMeSet (value : boolean)
Property Valuetrue to send a persistent authentication cookie; otherwise, false. The default value is false.
When the RememberMeSet property is true, the authentication cookie sent to the user's computer is set to expire in 50 years, making it a persistent cookie that will be used when the user next visits the Web site. Because the authentication cookie will be present on the user's computer, the user will be considered already authenticated and will not have to log in to the Web site again.
When the DisplayRememberMe property is true, the RememberMeSet property is set to the value of the check box displayed to the user.
If the DisplayRememberMe property is false, a Remember Me check box is not displayed on the page and the user has no way to control whether the authentication cookie is persistent. If the RememberMeSet property is true, the authentication cookie sent to the user's browser will be a persistent cookie.
If the user logs out of the Web site using the LoginStatus control, the persistent cookie is cleared from the user's computer and the user will have to log in to the site on the next visit.
There are inherent security risks with setting a persistent authentication cookie on a user's browser. You should determine whether these security risks are acceptable to your site. If you set the RememberMeSet property to true and the DisplayRememberMe property to false, users visiting your Web site from public browsers, as in Internet cafes for example, can accidentally leave persistent authentication cookies behind and the next user of the browser will be able to access your Web site using the previous user's credentials.