web.config in subdirectory related query

Ask a Question related to ASP.NET Security, Design and Development.

  1. #1

    Default web.config in subdirectory related query

    Hi all,

    I have read that you can have have multiple web.config files but some tags
    including <authentication> can only be present in the root one.

    but our applictaion is used by 3 different kinds of users.
    so we have 1 virtual directory and 3 folders, 1 for each type of user.
    we have 1 login page in each of the 3 different folders.

    Now my requirement is when the session times out /invalid login
    information/.... i need to go to login page of curresponding folder.

    How can is set this in web.config in subdirectory as i cannot override
    authentication tag in subdirectory.

    Do i have to make each subfolder VirtualDirectory?

    we are using webfarm with 2 webservers.

    what is the best practice to implement this?

    Any sugesstions would be helpful

    Thanks
    VSK



    VSK Guest

  2. Similar Questions and Discussions

    1. Create a subdirectory and change to subdirectory
      How can i create a subdirectory thru SDK in VB.NET? Like :- MD <NEWDIRNAME> CD <NEWDIRNAME> I dont know if my approach of searching is wrong,...
    2. ASP Coding Problem, XMLDOM-related (or just language-related!)
      Hi, I'm hoping someone can help me with this problem. I'm not sure whether the problem lies with the software or with my understanding of the...
    3. Web.Config and subdirectory *location* security
      I've read similar posts to this issue, and I am fairly certain this configuration should work. However, when I try to request any of the pages in...
    4. Problem with web.config access-restricted subdirectory
      Hi, I have a problem with web.config unsuccessfully controlling access to a subdirectory. I'm using VS03 and IIS5.0 on NT2K. I have been able...
    5. Runtime CD query (not the simle read-only file question, but related)
      I'm a newbie, publishing my first DB on CD for a client. The DB is large (several hundred Meg), so the client feels the main DB should stay (as...
  3. #2

    Default web.config in subdirectory related query

    "Do i have to make each subfolder VirtualDirectory?"
    Yes. Beacuse you can't override that kind of settings :-(
    Why not persenolize the loginpage instead? you can get
    the language settings you have in IE to identify there
    language, you can get there IP (if static) as identifier
    etc...

    JN


    >-----Original Message-----
    >Hi all,
    >
    >I have read that you can have have multiple web.config
    files but some tags
    >including <authentication> can only be present in the
    root one.
    >
    >but our applictaion is used by 3 different kinds of
    users.
    >so we have 1 virtual directory and 3 folders, 1 for each
    type of user.
    >we have 1 login page in each of the 3 different folders.
    >
    >Now my requirement is when the session times
    out /invalid login
    >information/.... i need to go to login page of
    curresponding folder.
    >
    >How can is set this in web.config in subdirectory as i
    cannot override
    >authentication tag in subdirectory.
    >
    >Do i have to make each subfolder VirtualDirectory?
    >
    >we are using webfarm with 2 webservers.
    >
    >what is the best practice to implement this?
    >
    >Any sugesstions would be helpful
    >
    >Thanks
    >VSK
    >
    >
    >
    >.
    >
    Johan Normén NSQAURED2 Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139