Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. securing directory with forms authentication

securing directory with forms authentication

Scheduled Pinned Locked Moved ASP.NET
securityquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    godzooky
    wrote on last edited by
    #1

    i'm trying to use forms authentication to secure some files. we switched from listing each file separately in web.config to securing the entire directory, but now, it doesn't prompt for the login page when trying to access a protected page. it works fine while restricting each page individually. here is the entry in web.config, any ideas?? thanks

    M 1 Reply Last reply
    0
    • G godzooky

      i'm trying to use forms authentication to secure some files. we switched from listing each file separately in web.config to securing the entire directory, but now, it doesn't prompt for the login page when trying to access a protected page. it works fine while restricting each page individually. here is the entry in web.config, any ideas?? thanks

      M Offline
      M Offline
      minhpc_bk
      wrote on last edited by
      #2

      Hi there, Could not see anything, next time you should remember to tick the checkbox "Do not ..." below the text editor. Are you sure that the unauthenticated users can access the web page .aspx in the folder specified in the path attribute of the location entry in the web config file? If you only specify the folder name in the path attribute, then you need to make sure the folder is placed at the root of the web application. You can also try with another work-around solution is to place another web.config file in the folder which you want to protect.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups