CodePaste Logo
New Snippet New Snippet Recent Snippets Recent Snippets My Snippets My Snippets Web Code Search Snippets Search
Sign inor Register
Format:
Recent snippets matching tags of Login
C#
//using System.Web.Security
 
if (Membership.ValidateUser(username, password))
{
   //Log in user.
   FormsAuthentication.SetAuthCookie(username, true);
}
else
{
   //Handle user not exist code.
by Egli   July 19, 2011 @ 6:32pm
120 Views
no comments
 
brought to you by:
West Wind Techologies



If you find this site useful and use it frequently please consider making a donation to support this free service.
Donate