Click here to Skip to main content
15,885,366 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have an mvc4 application.now i want to block the accessing of inner pages with out login
i tried following
XML
<authentication mode="Forms" >
    <forms loginUrl="~/Login/Login" />
 </authentication>
 <authorization >
    <deny users="?"  />
    <allow users="*"/>
 </authorization>


but always the login url is appended with all action so unable access other actions

also tried [authorize] attribute but it redirect to some special pages not redirecting to login .can any one know the solution please help me
Posted
Updated 16-Feb-15 18:59pm
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900