473,513 Members | 2,658 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

authentication


Hi.

How can I use authentication (forms) only for some pages on my web site. For
example I do not want to users enter login/password for start page etc.

Thanks.
Nov 18 '05 #1
2 1617
Dans son message précédent, Ivan A. Gavrilyuk a écrit :
Hi.

How can I use authentication (forms) only for some pages on my web site. For
example I do not want to users enter login/password for start page etc.

Thanks.


Hi,

You just have to modify the Web.Config file. For example, if you want
to exclude the login.aspx page from authentification add this section
in the config file :
<configuration>
<location path="login.aspx">
<system.web>
<authorization>
<allow users="*" /> --> All users are accepted
</authorization>
</system.web>
</location>
<location path="errorPage.aspx">
<system.web>
<authorization>
<allow users="*" />
</authorization>
</system.web>
</location>

<system.web>

N Torrent

--
Ceci est une signature automatique de MesNews.
Site : http://mesnews.no-ip.com

Nov 18 '05 #2
Thanks, this is the solution for my problem!

"Torrent Nicolas" <n.torrent(nospam)@evaluant.com> wrote in message
news:mn***********************@evaluant.com...
Dans son message précédent, Ivan A. Gavrilyuk a écrit :
Hi.

How can I use authentication (forms) only for some pages on my web site. For example I do not want to users enter login/password for start page etc.

Thanks.


Hi,

You just have to modify the Web.Config file. For example, if you want
to exclude the login.aspx page from authentification add this section
in the config file :
<configuration>
<location path="login.aspx">
<system.web>
<authorization>
<allow users="*" /> --> All users are accepted
</authorization>
</system.web>
</location>
<location path="errorPage.aspx">
<system.web>
<authorization>
<allow users="*" />
</authorization>
</system.web>
</location>

<system.web>

N Torrent

--
Ceci est une signature automatique de MesNews.
Site : http://mesnews.no-ip.com

Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
9263
by: Michael Foord | last post by:
#!/usr/bin/python -u # 15-09-04 # v1.0.0 # auth_example.py # A simple script manually demonstrating basic authentication. # Copyright Michael Foord # Free to use, modify and relicense. #...
8
3680
by: Bob Everland | last post by:
I have an application that is ISAPI and the only way to secure it is through NT permissions. I need to have a way to login to windows authentication so that when I get to the ISAPI application no...
9
2494
by: Tom B | last post by:
In my web.config file I've specified Windows for the authentication, in IIS I've set it to Integrated Authentication. But my SQL connection is still showing Anonymous. Is there somewhere else I...
2
7500
by: Frank Swarbrick | last post by:
I am trying to understand "client authentication" works. My environment is DB2/UDB LUW 8.2 on zSeries SLES9 as the database server and DB2 for VSE 7.4 as the client. We currently have DB2/LUW set...
5
3531
by: Rory Becker | last post by:
Having now created a Custom MembershipProvider that seems to work correctly with my Logon and ChangePassword controls, I am, as they say, a happy bunny. The next stange is to move on to the...
0
7257
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7379
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7535
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
5682
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5084
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4745
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3232
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
798
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
455
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.