Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Restrict access to Classic ASP pages in web.config

Reply
Thread Tools

Restrict access to Classic ASP pages in web.config

 
 
Christiano
Guest
Posts: n/a
 
      07-17-2008
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>


 
Reply With Quote
 
 
 
 
bruce barker
Guest
Posts: n/a
 
      07-17-2008
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>
>
>
>

 
Reply With Quote
 
 
 
 
Christiano
Guest
Posts: n/a
 
      07-18-2008
bruce...

it worked...

tks a lot..
christiano



"bruce barker" <(E-Mail Removed)> escreveu na mensagem
news:(E-Mail Removed)...
> 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>
>>
>>
>>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Protecting classic ASP pages with ASP.NET 2.0 Gert Conradie ASP .Net 0 08-02-2006 01:21 PM
sharing authentication/authorization between ASP.NET and Classic ASP pages? ASP .Net 1 05-19-2005 11:22 AM
How to port Classic ASP pages to ASP.NET? Raterus ASP .Net 4 06-17-2004 08:51 AM
LOOP through an ASP form's pages (not ASP.NET - ASP classic) David A. Beck ASP General 10 04-13-2004 05:38 PM
password protection of web pages and restrict access..all in javascript chris Javascript 2 11-10-2003 04:05 PM



Advertisments