I've attached the relevant portion of my web.config file below.
When a user attempts to directly visit the url admin.aspx, and they are not an admin, they are redirected to the login page. However, the user then attempts to visit ViewWeek.aspx, it indicates that they are still logged in.
为什么此ASP.NET授权会将用户引导到登录屏幕,但仍保持用户登录?我希望它只是将用户引导到表单标记中指定的默认URL。
谢谢
Here's my Forms Authentication:
<预> <代码> &认证模式=“窗体”& gt;
窗体名称=“.ASPXFrame SouthH”Debug,=“VIEWAX.ASPX”超时=“50000000”/gt;
< /代码>
And here's my authorization
< IMG SRC=“HTTPS://imgur.COM/3HFBU.PNG”ALT=“ALT文本”/>
When a user attempts to directly visit the url admin.aspx, and they are not an admin, they are redirected to the login page. However, the user then attempts to visit ViewWeek.aspx, it indicates that they are still logged in.
为什么此ASP.NET授权会将用户引导到登录屏幕,但仍保持用户登录?我希望它只是将用户引导到表单标记中指定的默认URL。
谢谢
Here's my Forms Authentication:
<authentication mode="Forms">
<forms name=".ASPXFORMSAUTH" defaultUrl="ViewWeek.aspx" timeout="50000000" />
</authentication>
And here's my authorization