Graphics files with Forms Based Authentication

J

Jason - MCSD

I am able to implement Forms Based Authentication successfully, following the
example in this link:
http://support.microsoft.com/kb/326340/

Although functional, the resulting page (logon.aspx) is plain vanilla. I
just want to dress it up by adding a company logo to this logon page. So, I
added an image element to the page. The image never displays before a user
logs into the website. Interestingly, after the user has been authenticated
and attempts to access logon.aspx, the company logo is displayed. It's as if
all files in the secured directory (including the images) cannot be accessed
until the user has been successfully authenticated.

OK, I understand the concept. "Secure the files until after a user has been
authenticated." Seems like a Catch-22 to me. How would you dress up a logon
page in this context?
 
D

Dominick Baier

put the images in a separate folder and add a location element to web.config,
e.g.

<location path="images">
<system.web>
<autorization>
<allow users="*" />
 
J

Jason - MCSD

Dominick,

Thanks for the timely and relevant response! This worked perfectly.

-Jason
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,982
Messages
2,570,186
Members
46,740
Latest member
JudsonFrie

Latest Threads

Top