473,563 Members | 2,884 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 1282
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*******@hotm ail.com.nowhere > wrote in message
news:#B******** ******@TK2MSFTN GP10.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*******@hotm ail.com.nowhere > wrote in message
news:%2******** ********@TK2MSF TNGP10.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*******@hotm ail.com.nowhere > wrote in message
news:#B******** ******@TK2MSFTN GP10.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
2452
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 need: A system whereby the user only has to register ONCE and he will have automatic entry to ANY page without havinto to RE-LOGIN even if he...
5
5638
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 can have only one session at a time.
0
1407
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 Login.aspx page (where a userID session is generated upon successful login). my pages are user specific, so each page will load data specific to that user...
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 user account (with same password as aspnet user on IIS (Devweb01)) 2) edited local machine.config file <ProcessModel> Password attribute to same...
7
3182
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 -- UC/ ----- Classic/
0
1675
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 became realllllllllllly slow. Content in LoginView Role Groups was not displaying even after a user in a role had logged in. It was taking about...
13
6210
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? I'm basically trying to set it up so that I can keep the User infor (userid, ect) in the Masterpage so that other pages can access it. Thanks for...
2
2591
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 verify that I have built the page correct and that is nothing wrong with the code. If there is something wrong with the code is it possible to explain...
3
4328
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 folder. The default.aspx sits in the root folder and just does a Response.Redirect to an ~/auth/home.aspx page. The config forces authentication,...
1
1557
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 variables exist or not. if the sessions variables are not exist i use header to go login.html page. if yes the user can enter the pages.......in every...
0
7664
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7885
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7638
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7948
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6250
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5484
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3642
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3626
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
923
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.