I strongly recommend you using asp.net FormsAuthentication and built in Membership provider. The code will result much cleaner and standarized.
In your case I would use SqlMembershipProvider. Check this link
http://bensteinhauser.wordpress.com/2012/07/16/using-the-sqlmembershipprovider/
Below is a sample of login code
var authTicket = new FormsAuthenticationTicket(1, //version
login.UserName, // user name
DateTime.Now, //creation
DateTime.Now.AddMinutes(30), //Expiration
true, //Persistent
userId);
var encTicket = FormsAuthentication.Encrypt(authTicket);
Response.Cookies.Add(new HttpCookie(FormsAuthentication.FormsCookieName, encTicket));
the logout is very simple
FormsAuthentication.SignOut();
And for checking if the user is logged in just
User.Identity.IsAuthenticated