I have a web application that has loginUrl="Index.aspx"
and% defaultUrl="list.aspx"
.
This works well, because once I have the Index.aspx
and I hope the user identifies, I get the page list.aspx
.
The problem is that if I directly put the URL of list.aspx
, I can open it without having to go through Index.aspx
.
How can I block access and only once I have gone through Index.aspx
the page list.aspx
is posted?
Thank you very much in advance.
Here is part of my web.config
:
<authentication mode="Forms">
<forms loginUrl="Index.aspx"
slidingExpiration="true"
defaultUrl="list.aspx"
timeout="600" name=".Auth"
protection="All"/>
</authentication>