if (Membership.ValidateUser(txt_email.Text, txt_password.Text)) { FormsAuthentication.RedirectFromLoginPage(txt_email.Text, cmb_remeber.Checked); }
Quote:The LoginStatus control displays a login link for users who are not authenticated and a logout link for users who are authenticated. The login link takes the user to a login page. The logout link resets the current user's identity to be an anonymous user.
HttpContext.Current.User.Identity.IsAuthenticated
if(HttpContext.Current.User.Identity.IsAuthenticated) { //Do stuff }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)