EDN Admin
Well-known member
I am trying to access a password protected directory but keeps kicking me out!!
I am not sure if this is important but here a little background. I converted thisMS SQL login/registration form into ORACLE login/registration form. It successfully logs me in using credentials stored in my oracle database. Then created a protected folder called Admin with a Web.config attached to it which looks like this: <?xml version="1.0"?>
<configuration>
<system.web>
<authorization>
<allow users="Kim"/>
<deny users="*"/>
</authorization>
</system.web>
</configuration>
I can login as Kim but the problem is everytime I tried accessing the Admin directory/folder it keeps kicking me out. Below is my site wide Web.config file<?xml version="1.0"?>
<configuration>
<connectionStrings>
<add name="my_oracle_con_string"
connectionString="Provider=MSDAORACLE;Data Source=MainDB;Persist Security Info=True;Password=xxxx;User ID=yyyyyy"
providerName="System.Data.OleDb" />
</connectionStrings>
<system.web>
<!-- Enable and Customize OracleMembershipProvider settings -->
<membership defaultProvider="MyOracleMembershipProvider
<providers>
<add name="MyOracleMembershipProvider"
type="Oracle.Web.Security.OracleMembershipProvider, Oracle.Web, Version=2.111.6.20, Culture=neutral, PublicKeyToken=89b483f429c47342"
PasswordFormat="Clear"
connectionStringName="my_oracle_con_string"/>
</providers>
</membership>
<compilation debug="true" targetFramework="4.0
<assemblies>
<add assembly="System.Data.OracleClient, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
</assemblies>
</compilation>
<authentication mode="Forms
<forms name=".ADAuthCookie" loginUrl="~/Account/Login.aspx" timeout="2880"/>
</authentication>
</system.web>
<system.webServer>
<modules runAllManagedModulesForAllRequests="true"/>
</system.webServer>
</configuration>
Can anyone please take a look and give some suggestions?
Thank you!
~Ceci
nothing for members to see
View the full article
I am not sure if this is important but here a little background. I converted thisMS SQL login/registration form into ORACLE login/registration form. It successfully logs me in using credentials stored in my oracle database. Then created a protected folder called Admin with a Web.config attached to it which looks like this: <?xml version="1.0"?>
<configuration>
<system.web>
<authorization>
<allow users="Kim"/>
<deny users="*"/>
</authorization>
</system.web>
</configuration>
I can login as Kim but the problem is everytime I tried accessing the Admin directory/folder it keeps kicking me out. Below is my site wide Web.config file<?xml version="1.0"?>
<configuration>
<connectionStrings>
<add name="my_oracle_con_string"
connectionString="Provider=MSDAORACLE;Data Source=MainDB;Persist Security Info=True;Password=xxxx;User ID=yyyyyy"
providerName="System.Data.OleDb" />
</connectionStrings>
<system.web>
<!-- Enable and Customize OracleMembershipProvider settings -->
<membership defaultProvider="MyOracleMembershipProvider
<providers>
<add name="MyOracleMembershipProvider"
type="Oracle.Web.Security.OracleMembershipProvider, Oracle.Web, Version=2.111.6.20, Culture=neutral, PublicKeyToken=89b483f429c47342"
PasswordFormat="Clear"
connectionStringName="my_oracle_con_string"/>
</providers>
</membership>
<compilation debug="true" targetFramework="4.0
<assemblies>
<add assembly="System.Data.OracleClient, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>
</assemblies>
</compilation>
<authentication mode="Forms
<forms name=".ADAuthCookie" loginUrl="~/Account/Login.aspx" timeout="2880"/>
</authentication>
</system.web>
<system.webServer>
<modules runAllManagedModulesForAllRequests="true"/>
</system.webServer>
</configuration>
Can anyone please take a look and give some suggestions?
Thank you!
~Ceci
nothing for members to see
View the full article