473,385 Members | 1,356 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Have not all the pages protected by the login page

My web.config looks like this concerning login :

<authentication mode="Forms">

<forms loginUrl="frmLogin.aspx" timeout="20" />

</authentication>

<authorization>

<deny users="?" /> <!-- Allow all users -->

</authorization>
And cookieless is set to True

I would like to know if it is possible to not have all my pages protected by
the login page. My login page performs some checks in its page_load (read
registry entries etc..) and if an error happens (missing registry keys for
example) I would like it to redirect to an Error page of my own. But if I
include this error page in my project as an aspx page (or even html fails
because it is not treated as aspx and will not load because of cookiless,
session ID appears in the URL and seems to cause problems) it will become
protected by the login page so I won't see it anyways...

Someone can help ?
--
Philippe Meunier
Programmer
CHCA Computer Systems Inc.
Nov 17 '05 #1
1 1537
Hi Philippe,

The following article looks like it's exactly what you want.
316871 HOW TO: Control Authorization Permissions in an ASP.NET Application
http://kb/article.asp?id=Q316871

Thank you, Mike
Microsoft, ASP.NET Support Professional

Microsoft highly recommends to all of our customers that they visit the
http://www.microsoft.com/protect site and perform the three straightforward
steps listed to improve your computer’s security.

This posting is provided "AS IS", with no warranties, and confers no rights.
--------------------
From: "Philippe Meunier" <pm******@chca.ca>
Subject: Have not all the pages protected by the login page
Date: Fri, 24 Oct 2003 10:41:24 -0400
Lines: 35
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
Message-ID: <ec**************@TK2MSFTNGP11.phx.gbl>
Newsgroups: microsoft.public.dotnet.framework.aspnet
NNTP-Posting-Host: 206.47.191.74
Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP11.phx.gbl
Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.aspnet:186333
X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet

My web.config looks like this concerning login :

<authentication mode="Forms">

<forms loginUrl="frmLogin.aspx" timeout="20" />

</authentication>

<authorization>

<deny users="?" /> <!-- Allow all users -->

</authorization>
And cookieless is set to True

I would like to know if it is possible to not have all my pages protected by the login page. My login page performs some checks in its page_load (read
registry entries etc..) and if an error happens (missing registry keys for
example) I would like it to redirect to an Error page of my own. But if I
include this error page in my project as an aspx page (or even html fails
because it is not treated as aspx and will not load because of cookiless,
session ID appears in the URL and seems to cause problems) it will become
protected by the login page so I won't see it anyways...

Someone can help ?
--
Philippe Meunier
Programmer
CHCA Computer Systems Inc.


Nov 17 '05 #2

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

Similar topics

2
by: Alex Rybalov | last post by:
Hi, Using IIS 5.0 and sometime some asp pages (absolutely randomly) showing as blank white pages. So far only one way of fixing it - restart whole server. Restarting IIS, or specific web server...
8
by: joe | last post by:
Some time ago I set up an ASP application that used a login page which checked a username and password against a database to determine a users authorization to access certain pages on the site....
5
by: Columbia Pike | last post by:
Hi, I'm trying to have a login page; after logging in the user has to see the list of SQL Server Databases available to him/her. I'm always getting the error 'ASP.login_aspx' does not contain a...
2
by: Shawn Berg | last post by:
Some of my pages in the app I am developing inherit from a BasePage class I have created. I have done plenty of these in the past and they work fine. Now, however, I have an additional requirement....
4
by: Greg Scharlemann | last post by:
I thought I had a workable approach to specifing which pages required a redirect in a config file, but it appears the way I'm attempting to do it is not going to work. The idea is that I can...
1
by: =?Utf-8?B?U2VtU2Vt?= | last post by:
Helloz iam working in a web application for univesity. ihave diffrent kind of roles like: 1-Studetn Affairs 2-Staff imake three sperate master pages for them.: example:
1
by: miladhatam | last post by:
what is the best security way to access a private page i use session for example if (Session.Contents.ToString() != "admin") { Response.Redirect("default.aspx"); } but i know it is not safe...
4
by: RMA | last post by:
Hello All, Is it possible to add an rss feed (e.g. an .aspx page that writes xml content to the response stream) to a forms authenticated web site? Anonymous users shouldn't be able to read the...
1
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
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.