1

I'm using the asp.net membership and role provider tools and can't figure out how to require login for specific pages. I tried putting the pages in a seperate directory and adding this to my web.config but it still denies access after succesful login.

<location path="Purchase">
  <system.web>
    <authorization>
     <deny users="*"/>
    </authorization>
  </system.web>
</location>
Ladislav Mrnka
  • 360,892
  • 59
  • 660
  • 670
Clint
  • 11
  • 2

1 Answers1

3

'*' refers to all users (logged in or otherwise). If you want to refer only to users who are not authenticated (not logged in), use '?'.

Jonathan Wood
  • 65,341
  • 71
  • 269
  • 466