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. Is user id safer that username in a querystring for member profiles

Is user id safer that username in a querystring for member profiles

Scheduled Pinned Locked Moved ASP.NET
database
5 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.
  • A Offline
    A Offline
    Albert83
    wrote on last edited by
    #1

    Hi, I would like to know if it's safe to program a site with members where I use usernames rather than user id in the querystring to retrieve user information from a database. I see some sites have user ids nad some usernames. Any response is appreciated.

    B 1 Reply Last reply
    0
    • A Albert83

      Hi, I would like to know if it's safe to program a site with members where I use usernames rather than user id in the querystring to retrieve user information from a database. I see some sites have user ids nad some usernames. Any response is appreciated.

      B Offline
      B Offline
      Binod K
      wrote on last edited by
      #2

      Hi, User Id is obviously prefered and secure choice, because username is understandable to others. But Whether its Id or Name both must be associated with Password and without the combination of both,access of applicaiton is not possible. But if i know the username,databasename, and tablename and i have the access of Database server, i can fetch the user information from database. Same is possible with user Id as well. But its diffcult to guess which Id belong to which User. Hope this will bring u decide ID or Name.

      A 1 Reply Last reply
      0
      • B Binod K

        Hi, User Id is obviously prefered and secure choice, because username is understandable to others. But Whether its Id or Name both must be associated with Password and without the combination of both,access of applicaiton is not possible. But if i know the username,databasename, and tablename and i have the access of Database server, i can fetch the user information from database. Same is possible with user Id as well. But its diffcult to guess which Id belong to which User. Hope this will bring u decide ID or Name.

        A Offline
        A Offline
        Albert83
        wrote on last edited by
        #3

        Thanks a lot for the useful information. One thing though is that user id is just as visible as a username in the querystring when you for example click on a profile of a certain user. Also assuming that a person have logged in to a certain site how can he possibly retrieve the database name and a table name, and also have an access to a database server? is it easy possible to do or it's extremly difficult to retrieve that? Thanks again.

        B 1 Reply Last reply
        0
        • A Albert83

          Thanks a lot for the useful information. One thing though is that user id is just as visible as a username in the querystring when you for example click on a profile of a certain user. Also assuming that a person have logged in to a certain site how can he possibly retrieve the database name and a table name, and also have an access to a database server? is it easy possible to do or it's extremly difficult to retrieve that? Thanks again.

          B Offline
          B Offline
          Binod K
          wrote on last edited by
          #4

          Albert, you are correct, User id is just as visible as a username. But statement ?UserID=1234 or ?UserName='Albert' makes difference in visibility. For a end user its impossible to retrieve information from database. All the best for endeavour.

          A 1 Reply Last reply
          0
          • B Binod K

            Albert, you are correct, User id is just as visible as a username. But statement ?UserID=1234 or ?UserName='Albert' makes difference in visibility. For a end user its impossible to retrieve information from database. All the best for endeavour.

            A Offline
            A Offline
            Albert83
            wrote on last edited by
            #5

            Ok. Thanks alot.

            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