Use security system to set the UserID within a client-side Cookie
FormsAuthentication.SetAuthCookie(email.Text, RememberCheckbox.Checked)
Log User Off from Cookie Authentication System
FormsAuthentication.SignOut()
Removes the forms-authentication ticket from the browser.
Public Shared Function Authenticate(ByVal name As String, ByVal password As String) As Boolean
Member of System.Web.Security.FormsAuthentication
Summary:
Validates a user name and password against credentials stored in the configuration file for an application.
Parameters:
name: The user name.
password: The password for the user.
Return Values:
true if the user name and password are valid; otherwise, false.