webconfig file

G

Guest

Hi all,

I have a question about the webconfig file, where it states the:
<authentication mode="Forms">
<forms name="logincookie" path="/"
loginUrl="UserLogin.aspx?Action=login" protection="All" timeout="180" />
</authentication>

I have a default.aspx file, which is the first page when the user hits the
server folder. The problem I am facing is that the user's webpage will
automatically be sent to the UserLogin.aspx page. How can I set up an aspx
first page that will NOT YET require user authentication ?

Right now I am circumventing this problem by using a .html page as my first
page, which will lead to the start-up aspx page.

TIA,
Andrew
 
K

Karl Seguin

<system.web>
. ..
</system.web>

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

Juan T. Llibre

<system.web>
<authentication mode="None" />
</system.web>

should work, too.
 
G

Guest

Hi all,

I was just wondering, is it possible to put more than one location path code
module in the web.config file ? If not, then how do I add more than one page
to the location path ??

TIA,
Andrew
 
P

Patrick.O.Ige

Yes you can:-
<system.web>
<authorization>
<allow users="*" />
</authorization>
</system.web>
</location>

or even a folder

<system.web>
<authorization>
<allow users="*" />
</authorization>
</system.web>
</location>
Hope that helps
Patrick
 

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

Similar Threads

Folder protection with webconfig 0
webconfig 1
problem in webconfig 2
Forms, Roles, and webconfig 1
WebConfig 2
Forms Authentication Webconfig 2
Login redirect not working 1
webconfig error 6

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top