hi,
you can write below code in your web.config file.
<system.web>
<authentication mode="Forms">
<forms loginUrl="login.aspx" timeout="600" protection="All"/>
</authentication></system.web>
hope this will help you. please mark as solution if help u.
thanks,
kk