Security web.config

Results 1 to 2 of 2

Thread: Security web.config

  1. #1
    Join Date
    Dec 1969

    Default Security web.config

    Hi,<BR><BR>I have 2 secure folders, say &#039;user&#039; and &#039;admin&#039;. I specify two web.config files within the folders with the autorization tag containing -- &#060;deny users="?"&#062; --. The problem is they have two different login pages. How can I redirect them to their corresponding login pages using the &#060;authentication&#062; tag??

  2. #2
    Join Date
    Dec 1969

    Default hmm... maybe

    When ASP.NET sends an unathorized user to the login page, it includes the Request.QueryString parameter named "ReturnURL"<BR><BR>you could just check that for which folder ("/user/" or "/admin/") and decide on which login to show them<BR><BR>you may someday want to look at Role Based security (as shown on this page:, that way you can code all this stuff at one single point of entry... that&#039;s just my 2 cents :)<BR><BR>good luck

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts