authentication mode for specific files?

J

Jeremy Chapman

I'm my web application, I've specified to use forms authentication in the
web config. In my signin page, I have an img tag to an image in my web
applications virtual directory. Because the user is not signed in yet, the
image url is not available, is there any way in the web config file to
specify specific files that do not require authentication?

<authentication mode="Forms">
<forms name=".ASPXeScript.Admin" loginUrl="signin.aspx" protection="All"
timeout="30" path="/" defaultUrl="default.aspx">
<!-- protection="[All|None|Encryption|Validation]" -->
</forms>
</authentication>
<authorization>
<deny users="?"/>
</authorization>
 
D

Dominick Baier [DevelopMentor]

<location path="specialFile.aspx">
<system.web>
<authorization>
<allow users="*" />
</authorization>
</system.web>
</location>
 

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
474,266
Messages
2,571,075
Members
48,772
Latest member
Backspace Studios

Latest Threads

Top