Assuming you are using form Authentication,may be you need to use following method:
FormsAuthentication.SetAuthCookie
This will "Creates an authentication ticket for the supplied user name and adds it to the cookies collection of the response, or to the URL if you are using cookieless authentication."
taken from MSDN