I have a few pages that require users to login to use. When their session times out I want them to be directed to another login screen other than the standard one I have at the root which is login.aspx. I want them to be directed to mobile/Default.aspx which also has a login screen. It seems I should be able to do this in the WebConfig but I don't know the syntax if in fact it is possible. I tried the following but it is wrong.
<location path="m_search.aspx">
<authentication mode="Forms">
<forms loginUrl="login.aspx"
defaultUrl="mobile/Default.aspx" />
</authentication>
<authorization>
<deny users="*"/>
</authorization>
</location>
I am running ASP.Net 4 for VB....not c#
If you can help please provide the code.