Quantcast
Channel: Security
Viewing all articles
Browse latest Browse all 4737

form authorization

$
0
0

Hello All

trying to learn form authentication/authorization by using Login control

login control works fine, but there is problem in authorization. my form authorization is not working.

by entering right user credentials it's not redirecting to welcome page. when i make changes then it is allowing to access the welcome page without even login the user.

below is the web.config code

<configuration><system.web><compilation debug="true" targetFramework="4.5" /><httpRuntime targetFramework="4.5" /><authentication mode="Forms"><forms defaultUrl="Welcome.aspx" loginUrl="Default.aspx"></forms></authentication><authorization><deny users="?"/></authorization></system.web><appSettings><add key="ValidationSettings:UnobtrusiveValidationMode" value="None" /></appSettings></configuration>

and here is the list of pages i have

Default.aspx(also login page)

Welcome.aspx

Please help


Viewing all articles
Browse latest Browse all 4737

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>