Article:
  ASP.NET Forms Authentication - Part 1
Subject:   forms authentication won't work
Date:   2004-06-18 09:43:19
From:   petermonadjemi
I have encoutered the stange phenomena that I sometimes can call webpages from a directory protected by forms authentication without having to be logged in. I am using WebMatrix have read that others have had the same problem but I haven't found a solution yet, here is my web.config:


<?xml version="1.0" encoding="UTF-8" ?>


<configuration>


<system.web>
<authentication mode="Forms">
<forms name=".ASPXAUTH"
loginUrl="login.aspx" />
</authentication>
<authorization>
<deny users="?" />
</authorization>
</system.web>
</configuration>


Regards,
Peter Monadjemi

Full Threads Oldest First

Showing messages 1 through 1 of 1.

  • forms authentication won't work
    2006-11-20 20:47:00  kamalmca [View]

    Hi Peter,

    As per your Web.config code, you are not allowing anybody to enter into your site. However if you have any authenticated user by any means you may check that the cookie does not get created and also check that any Asp.NET instance should not be running when you run your application. These leads to similar kind of problems which you are facing.Let me know if it helps you.