How to make .htm file to be authenticated by form authentication in asp. net ?
From: Nikco (nikcot2002@yahoo.com)
Date: 01/07/03
- Next message: Mike Moore [Microsoft]: "RE: IsInRole"
- Previous message: Boah: "Error message when opening page two times on the same time"
- Next in thread: Craig Deelsnyder: "Re: How to make .htm file to be authenticated by form authentication in asp. net ?"
- Reply: Craig Deelsnyder: "Re: How to make .htm file to be authenticated by form authentication in asp. net ?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: nikcot2002@yahoo.com (Nikco) Date: 6 Jan 2003 15:43:44 -0800
In asp.net, I set up my web.config as form authentication. It seems ok
if I try to access .aspx file that will bring up a login.aspx
which I specified in the web.config ( If I am not authenticated).
However, if I try to access a htm file in the same directory, the
login page never show up.
Then, I tried to get htm extension to be processed by the ASP.NET
ISAPI filter by adding .htm in IIS configuration.
Steps:
(1). 1. right-click on your application folder in IIS and bring up
it's
properties.
2. Select the directory tab
3. Select the configuration button
4. Select the mappings tab
5. Copy the path that is configured for .aspx (should be something
like:
C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\aspnet_isapi.dll)
6. Add a new entry for each extension you want to secure with the path
you
copied from step 5.
I think those extension will now be processed by the ASP.NET isapi
filter and will
required forms authentication. However, it is not the case. The login
page only show up once and it never shows up again.
Any idea or help would be appreciated...
- Next message: Mike Moore [Microsoft]: "RE: IsInRole"
- Previous message: Boah: "Error message when opening page two times on the same time"
- Next in thread: Craig Deelsnyder: "Re: How to make .htm file to be authenticated by form authentication in asp. net ?"
- Reply: Craig Deelsnyder: "Re: How to make .htm file to be authenticated by form authentication in asp. net ?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]