on login page if ok
Do this
FormsAuthentication.RedirectFromLoginPage
in web.config file you need this
<authentication mode="Forms">
<forms loginurl="login.aspx" name=".ASPXFORMSAUTHprod" protection="All" />
</authentication>
<authorization>
<deny users="?" />
</authorization>