473,499 Members | 1,955 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

User Login Page

Hi,
If I setup part of my web site to require users to login can I keep some
pages that are related only to that section of the site availble to all
users.

Example, I have a different section on my site where users must login, I
wish to have links on each login page to information pages that have the
information on how to register. I don't want to put these file in a
different folder instead i'd like to just let all users have access to them.
Can this be done.

Thank you
Kenneth Keeley
Nov 18 '05 #1
3 1275
You can use Forms Authentication to password protect just certain pages or
allows anon access to certain pages the same as you can with folders: by
modifying your Web.Config file.

"Kenneth Keeley" <ke*******@hotmail.com.nowhere> wrote in message
news:#B**************@TK2MSFTNGP10.phx.gbl...
Hi,
If I setup part of my web site to require users to login can I keep some
pages that are related only to that section of the site availble to all
users.

Example, I have a different section on my site where users must login, I
wish to have links on each login page to information pages that have the
information on how to register. I don't want to put these file in a
different folder instead i'd like to just let all users have access to them. Can this be done.

Thank you
Kenneth Keeley

Nov 18 '05 #2
you can use the location element within web.config file for that.
actually didnot get your message very clearly ....

but here;s what i think...
if you have a sub dir called abc... and you wish to protect that....
you add a location element and specify which roles / users can access it.

you can go about put the all the pages in a single dir... and use the
location element specify for what pages the users need to log in
you can set up roles and authentication using forms authentication.. which
is pretty alright...

you can easily access the role information if its is marked as login
required.. then the user will be taken to login page as specify in your
authentication element...

have a look into forms authentication

http://msdn.microsoft.com/library/en...asp?frame=true

--
Regards,

HD

"Kenneth Keeley" <ke*******@hotmail.com.nowhere> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Hi,
If I setup part of my web site to require users to login can I keep some
pages that are related only to that section of the site availble to all
users.

Example, I have a different section on my site where users must login, I
wish to have links on each login page to information pages that have the
information on how to register. I don't want to put these file in a
different folder instead i'd like to just let all users have access to them. Can this be done.

Thank you
Kenneth Keeley

Nov 18 '05 #3
You can do this with <Location> tag option in config file. Using this you
can set autorization setting for a particular file or for particular web
folder. For example you refer the following code

<location path="<filename>">
<system.web>
<autorization>
<allow users="*"
</autorization>
</system.web>
</location>
--
Saravana
Microsoft MVP - ASP.NET
www.extremeexperts.com

"Kenneth Keeley" <ke*******@hotmail.com.nowhere> wrote in message
news:#B**************@TK2MSFTNGP10.phx.gbl...
Hi,
If I setup part of my web site to require users to login can I keep some
pages that are related only to that section of the site availble to all
users.

Example, I have a different section on my site where users must login, I
wish to have links on each login page to information pages that have the
information on how to register. I don't want to put these file in a
different folder instead i'd like to just let all users have access to them. Can this be done.

Thank you
Kenneth Keeley

Nov 18 '05 #4

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

Similar topics

18
2443
by: | last post by:
Please help. After a number of wrong turns and experiments I need advice on login management system to secure our web pages without inconveniencing our visitors or our internal staff. What I...
5
5628
by: vincent | last post by:
Hi, If i login to the site again (may be in the same pc or different pc), system must allow me in and end my previous session. How do i go about doing this? This is to ensure that an user...
0
1402
by: Tim T | last post by:
Hi, I have a web application that has a number of users who administer their own data... i have several pages that check to see if a valid userID session exists, and if not, send them to a...
4
7227
by: rrober07 | last post by:
Hello, My Setup is I have a Web Server machine(Devweb01), Database SQL Machine(Devsql01), a Client Machine(local machine) I have configured the SQL machine as follows: 1) Added local Aspnet...
7
3176
by: Samuel | last post by:
Hi, I am building a page that makes use of user control as a templating technique. The following is that I have in mind and it is actually working: Root/ -- login.aspx -- login.aspx.vb --...
0
1666
by: clintonG | last post by:
I applied aspnet_regsql to SQL2K which was working fine throughout Beta 2 development. After installing Visual Studio and SQL Express RTM my application has blown up. Logging in to the application...
13
6203
by: Michael | last post by:
I have setup a public variable in the Master Page "code-behind-file". Now I would like to set that value from the UserControl, but I can't seem to find a way to do this. Does anyone have any ideas?...
2
2590
by: dgbergman | last post by:
I have created a php login page in my site for my company. The goal is to get people into members area. Below is a list of steps that I take to create my login page in Dreamweaver CS3, can some one...
3
4323
by: =?Utf-8?B?RHVrZSAoQU4yNDcp?= | last post by:
The majority of pages on our site need authentication (forms auth against the aspnetdb database). I created an '~/auth' folder with its own config file forcing authentication for any pages in the...
1
1543
by: chowdary | last post by:
hi, when the user clicks the logout.php the session variables are destroying. my doubt is when the user clicking back, again they are entering into the pages. how to check whether session...
0
7131
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
7007
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7174
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
7220
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...
1
6894
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5470
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,...
0
1427
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
665
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
297
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.