What's wrong with using the FormsAuthentication
class? In particular, have you tried the following sequence (or a variation of it):
FormsAuthentication.
Authenticate
();
FormsAuthentication.
SetAuthCookie
();
FormsAuthentication.
RedirectFromLoginPage
();