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. Salam , Where roles are saved ?

Salam , Where roles are saved ?

Scheduled Pinned Locked Moved ASP.NET
questioncsharpasp-networkspace
3 Posts 3 Posters 1 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.
  • M Offline
    M Offline
    Mohammed Amine
    wrote on last edited by
    #1

    Salam , iwas wondering , we always say if "Jhon" Is in role "Admin" then ' Do something Here End if but how those roles are stored & where ? i mean when we open the asp.net configuration site when we defione roles , where those roles are stored ? i hope you understood the question , i just don't know how system knows that somebody has some role how it knows it ? where he can find the list of roles that we have ? thank you

    try to be good if you can't be the best

    A M 2 Replies Last reply
    0
    • M Mohammed Amine

      Salam , iwas wondering , we always say if "Jhon" Is in role "Admin" then ' Do something Here End if but how those roles are stored & where ? i mean when we open the asp.net configuration site when we defione roles , where those roles are stored ? i hope you understood the question , i just don't know how system knows that somebody has some role how it knows it ? where he can find the list of roles that we have ? thank you

      try to be good if you can't be the best

      A Offline
      A Offline
      Abolfazl Sheikhloo
      wrote on last edited by
      #2

      salam duste aziz. age soalet ro vazeh tar begi mitunam komaket konam

      We Can Do Anything, If We Want It

      1 Reply Last reply
      0
      • M Mohammed Amine

        Salam , iwas wondering , we always say if "Jhon" Is in role "Admin" then ' Do something Here End if but how those roles are stored & where ? i mean when we open the asp.net configuration site when we defione roles , where those roles are stored ? i hope you understood the question , i just don't know how system knows that somebody has some role how it knows it ? where he can find the list of roles that we have ? thank you

        try to be good if you can't be the best

        M Offline
        M Offline
        MinhajuddinK
        wrote on last edited by
        #3

        Hi there, The information about roles, userIDs, Passwords, and profiles is stored in a SQL Database called ASPNETDB.mdf . You can find this DB by clicking on the App_Data folder in your solution explorer. Now where does this DB come from automatically? It's not magic. Whenever you set the authentication mode in the Configuration utility, An ASPNETDB is created and all the information about roles and userIDs etc, is stored in this Database. And whenever you say that this role should do this, it is from this DB the data is fetched. Hope it helps.

        You don't have to be AFRAID!

        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