Forms Authentication Problem


K

Kram

Hello All,

I have a asp.net 1.1 app which currently implements Forms
Authentication. This all works 100% as far as I can see. But I want to
change it slightly and dont know how to do it.

I need for just 1 certain type of request to always allow the user to
gain access to, so that no matter what, this certain page will not
require the user to log in.

How can I do this?

Here is a snippet of my web.config file:

<authentication mode="Forms" >
<forms name="MyAppCookie"
loginUrl="Login.aspx"
protection="All"
timeout="30"
path="/" />
</authentication>

<machineKey

validationKey="B623F13756A083C754CC51DF2C6CA1853394B11D069FD2A5638C6CD5F173BAF8CAA76130DF1C969AD946D70CD6F190AFBDA19256E2E2DBBF2D21D5A0BDAB6AC0"

decryptionKey=
"387CE3EF1AA4E5C7FD3E9E9FC67C5A36D227D3A7620EE8B7"
validation="SHA1"/>


Is there something I can append to this area to allow certain pages
through the authentication area?
 
Ad

Advertisements

K

Kram

got it, I had to add these lines to my webconfig file: (outside of the
system.web node, this is important)

<location path="MyPageToAllow.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

Top