473,385 Members | 1,912 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.

Restrict access to Classic ASP pages in web.config

Hi...

I have an hybrid ASP/ASP.NET site... And it will be like this for a
while...

I need to authenticated these ASP pages with password too. How can I
redirect it to login.aspx?

I'm using this simple authentication/authorization rule...

<system.web>

<authentication mode="Forms">

<forms name="Sinoreg_Login" loginUrl="login.aspx" timeout="20" />

</authentication >
<authorization>

<deny users="?" />

</authorization>

</system.web>
Jul 17 '08 #1
2 2158
it will be a little tricky but not hard.

your login.aspx page should store your own ticket and use an encryption that
the asp code can decrypt and store the user name in it. in every asp page,
check for the ticket, if there decode and get the username. if the ticket is
not there redirect to the login page, passing the asp page name as the
redirect url.
-- bruce (sqlwork.com)
"Christiano" wrote:
Hi...

I have an hybrid ASP/ASP.NET site... And it will be like this for a
while...

I need to authenticated these ASP pages with password too. How can I
redirect it to login.aspx?

I'm using this simple authentication/authorization rule...

<system.web>

<authentication mode="Forms">

<forms name="Sinoreg_Login" loginUrl="login.aspx" timeout="20" />

</authentication >
<authorization>

<deny users="?" />

</authorization>

</system.web>
Jul 17 '08 #2
bruce...

it worked...

tks a lot..
christiano

"bruce barker" <br*********@discussions.microsoft.comescreveu na mensagem
news:09**********************************@microsof t.com...
it will be a little tricky but not hard.

your login.aspx page should store your own ticket and use an encryption
that
the asp code can decrypt and store the user name in it. in every asp page,
check for the ticket, if there decode and get the username. if the ticket
is
not there redirect to the login page, passing the asp page name as the
redirect url.
-- bruce (sqlwork.com)
"Christiano" wrote:
>Hi...

I have an hybrid ASP/ASP.NET site... And it will be like this for a
while...

I need to authenticated these ASP pages with password too. How can I
redirect it to login.aspx?

I'm using this simple authentication/authorization rule...

<system.web>

<authentication mode="Forms">

<forms name="Sinoreg_Login" loginUrl="login.aspx" timeout="20" />

</authentication >
<authorization>

<deny users="?" />

</authorization>

</system.web>

Jul 18 '08 #3

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

Similar topics

3
by: Paul | last post by:
Hi all, at present I I've built a website which can be updated by admin and users. My problem, I've combined "log in" and "access levels" to restrict access to certain pages, using the built...
2
by: Jaydeep | last post by:
Hi, I want to restrict any user if he types url directly in the browser without logging to my site. Like for example user should not see any listing page of my web site by typing url...
5
by: Josh Rolfe | last post by:
I have a page in classic asp that accces a network drive, The code is as follows: <% dim fso dim objFolder set fso=server.createObject("Scripting.FileSystemObject") set...
2
by: nullref | last post by:
I'm having trouble setting up my classic ASP site to correctly handle .NET web config file for migration I need to do. If the config file is at the same level as my other pages I get the...
5
by: toddles666 | last post by:
Hi- Is there any way of restricting access to a database by application & account? For example, I only want the application APP1 to access the database using the USER1 account. I've tried to...
2
by: HankC | last post by:
I have a asp app that I wish to limit execution access to a universal security group during beta test... I've tried restricting permissions using ntfs, the virtual directory and the net.config...
8
by: antonyliu2002 | last post by:
We are extending a web application written in classic ASP long time ago. We will add more components to this web application in ASP.NET 2.0. To use the web application, our web users will have...
23
by: raashid bhatt | last post by:
what is restrict keyword used for? eg int *restrict p;
2
by: yogarajan | last post by:
hi friends i have one problem. i m using forms authentication for my pages which consist of downloadable links (doc files, pdf files etc.,). the thing is, if i restrict access to the page, it...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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: 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...
0
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
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
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,...

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.