| Author: gomathinayagam 15 Oct 2008 | Member Level: Gold | Rating:  Points: 2 |
will u add that within <system.web> :
</system.web> <location path="registeration"> <system.web> <authorization> <allow users="*"/> <deny users="*"/> </authorization> </system.web> </location> <system.web>
Gomathi Nayagam
Please Rate my answer if it has helpful to you
|
| Author: Cathrin 15 Oct 2008 | Member Level: Gold | Rating: Points: 1 |
I dont understand what you mean...Could you explain it?
|
| Author: gomathinayagam 15 Oct 2008 | Member Level: Gold | Rating: Points: 1 |
actually its working fine for me !
i am using vs 2005 wat ur version?
Gomathi Nayagam
Please Rate my answer if it has helpful to you
|
| Author: Cathrin 15 Oct 2008 | Member Level: Gold | Rating:  Points: 2 |
Mine is also VS 2005..I should put the page for which authentication should be disabled inside a folder and that folder name should be mentioned in location path na..Am I right? This is my web config file <?xml version="1.0"?>
<configuration> <appSettings/> <connectionStrings/> <location path ="NewFolder1"> <system.web> <compilation debug="true"/> <authentication mode="Forms"> <forms name ="loginCookie" loginUrl="Home.aspx" protection="All" timeout="30" path="/"> </forms> </authentication> <authorization> <deny users="?" /> </authorization> <customErrors mode="Off"></customErrors> </system.web> </location> </configuration>
I have the ForgotPassword page inside the NewFolder1
|
| Author: gomathinayagam 15 Oct 2008 | Member Level: Gold | Rating:  Points: 2 |
<location path="registeration"> <system.web> <authorization> <allow users="*"/> <deny users="*"/> </authorization> </system.web> </location>
add this u miss allow users deny users ???
Gomathi Nayagam
Please Rate my answer if it has helpful to you
|
| Author: gomathinayagam 15 Oct 2008 | Member Level: Gold | Rating:   Points: 3 |
<configuration> <appSettings/> <connectionStrings/> <location path ="NewFolder1"> <system.web> <authorization> <allow users="*"/> <deny users="*"/> </authorization> </system.web> </location> <system.web> <compilation debug="true"/> <authentication mode="Forms"> <forms name ="loginCookie" loginUrl="Home.aspx" protection="All" timeout="30" path="/"> </forms> </authentication> <authorization> <deny users="?" /> </authorization> <customErrors mode="Off"></customErrors> </system.web> </configuration>
change like this
Gomathi Nayagam
Please Rate my answer if it has helpful to you
|
| Author: gomathinayagam 15 Oct 2008 | Member Level: Gold | Rating:   Points: 3 |
u can add number of locations. like <location path ="NewFolder1"> <system.web> <authorization> <allow users="*"/> <deny users="*"/> </authorization> </system.web> <location path="Admin"> <system.web> <authorization> <allow roles="Admin"/> <deny users="*"/> </authorization> </system.web> </location>
here i use roles also. refer this
Gomathi Nayagam
Please Rate my answer if it has helpful to you
|
| Author: Cathrin 15 Oct 2008 | Member Level: Gold | Rating: Points: 1 |
Hi, Thanks alot yaar... It Worked Could you explain those liness
|
| Author: gomathinayagam 15 Oct 2008 | Member Level: Gold | Rating:  Points: 2 |
* All Users, including authenticated and anonymous users. ? All Non-Authenticated, or Anonymous, users.
so if i use ? in deny users ? means all are denied.
* in allow users means only authenticated.
so for authenticated pages <deny users="?"/> <allow users="*"/>
Gomathi Nayagam
Please Rate my answer if it has helpful to you
|
| Author: gomathinayagam 15 Oct 2008 | Member Level: Gold | Rating:  Points: 2 |
am give u a example with roles.
have u used role based authentication?
have u used sql role provider, profile provider, membership provider classes?
Gomathi Nayagam
Please Rate my answer if it has helpful to you
|
| Author: Cathrin 15 Oct 2008 | Member Level: Gold | Rating:  Points: 2 |
Hi Gomathinayagam, Thanks once again....I have not used roles based authentication,SQL role Provider,profile provider,membership provider classes.... By the way how do we categorize users as authenticated and anonymous
|
| Author: gomathinayagam 16 Oct 2008 | Member Level: Gold | Rating:  Points: 2 |
if you not using profile, u can only able to authenticate the user, if he is authenticate or anonymous.
most sites provide profile for anonymous also.
A good web site will remember the user. users favorite color scheme etc.
these all posible with profile system.
if you not using Asp.net 2.0 profile system u cant remember the anonymous user favourites.
Gomathi Nayagam
Please Rate my answer if it has helpful to you
|