if you are using the FormsAuthentication class, then this would be fairly easy using this...

Code:
FormsAuthentication.SignOut();