I added below code in my web config and
<authentication mode="Forms">
<forms loginUrl="Home/Login" timeout="2880"/>
</authentication>
and while debugging in layout
@if (User.Identity.IsAuthenticated)
it is showing windows authentication and making it true., where I am doing wrong ?