Use the setting in web.config file as shown:
<authentication mode="Forms">
<forms cookieless="UseCookies" defaultUrl="HomePage.aspx"
loginUrl="UnAuthorized.aspx" protection="All" timeout="30">
</forms>
</authentication>
In the above code use cookieless and time out attribute to get your recruitment.
Read complete article:
ASP.NET Membership and Role Provider[
^]