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. different login page for different roles

different login page for different roles

Scheduled Pinned Locked Moved ASP.NET
questionsecurityhelp
3 Posts 3 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.
  • H Offline
    H Offline
    hogan john
    wrote on last edited by
    #1

    Hi, I implemented forms authentication in my web application. The "forms" tag in the web config file stores the login page and defaultUrl. I have a folder for admin. To admin signin, I created a login page in admin folder. But whenever I tried to access a page in admin folder, it will redirected to the login page in the root level. I want to display admin's login page whenever someone access admin folder. How can i do it? Please help me. Regards, Hogan

    D P 2 Replies Last reply
    0
    • H hogan john

      Hi, I implemented forms authentication in my web application. The "forms" tag in the web config file stores the login page and defaultUrl. I have a folder for admin. To admin signin, I created a login page in admin folder. But whenever I tried to access a page in admin folder, it will redirected to the login page in the root level. I want to display admin's login page whenever someone access admin folder. How can i do it? Please help me. Regards, Hogan

      D Offline
      D Offline
      Declan Bright
      wrote on last edited by
      #2

      You should use a single login page for all users. You can then redirect the user to a different page based on their profile.

      Declan Bright www.declanbright.com

      1 Reply Last reply
      0
      • H hogan john

        Hi, I implemented forms authentication in my web application. The "forms" tag in the web config file stores the login page and defaultUrl. I have a folder for admin. To admin signin, I created a login page in admin folder. But whenever I tried to access a page in admin folder, it will redirected to the login page in the root level. I want to display admin's login page whenever someone access admin folder. How can i do it? Please help me. Regards, Hogan

        P Offline
        P Offline
        Paddy Boyd
        wrote on last edited by
        #3

        You can put a separate web.config file in the admin folder, I believe, and specify the login page for that folder there.

        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