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. General Programming
  3. C#
  4. registry vs isolated storage

registry vs isolated storage

Scheduled Pinned Locked Moved C#
visual-studiowindows-adminquestion
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.
  • B Offline
    B Offline
    balkang
    wrote on last edited by
    #1

    Hello, In a windows application I want to save the users username and password to remember in subsequent openings. Where do you recommend me to stare the information. In registry or isolated storage??

    M 1 Reply Last reply
    0
    • B balkang

      Hello, In a windows application I want to save the users username and password to remember in subsequent openings. Where do you recommend me to stare the information. In registry or isolated storage??

      M Offline
      M Offline
      Marc Clifton
      wrote on last edited by
      #2

      cezeri wrote: In a windows application I want to save the users username and password to remember in subsequent openings. Is there only one user of the software per machine? Then I think isolated storage is better. If there are multiple users, then possibly the registry, under CurrentUser. Are you encrypting the username and password, wherever you store it? And I guess this begs the question, why have a separate login for your application, rather than using windows authentication? I mean, if the user has successfully logged in to Windows, why does he need to log in again to your app? Marc MyXaml Advanced Unit Testing YAPO

      B 1 Reply Last reply
      0
      • M Marc Clifton

        cezeri wrote: In a windows application I want to save the users username and password to remember in subsequent openings. Is there only one user of the software per machine? Then I think isolated storage is better. If there are multiple users, then possibly the registry, under CurrentUser. Are you encrypting the username and password, wherever you store it? And I guess this begs the question, why have a separate login for your application, rather than using windows authentication? I mean, if the user has successfully logged in to Windows, why does he need to log in again to your app? Marc MyXaml Advanced Unit Testing YAPO

        B Offline
        B Offline
        balkang
        wrote on last edited by
        #3

        the same username and password will be used in connecting a remote web service so these information will be saved in server. Will it be logical to release the windows password to the server? This is my first project and I seriously consider your recommendations

        M 1 Reply Last reply
        0
        • B balkang

          the same username and password will be used in connecting a remote web service so these information will be saved in server. Will it be logical to release the windows password to the server? This is my first project and I seriously consider your recommendations

          M Offline
          M Offline
          Marc Clifton
          wrote on last edited by
          #4

          cezeri wrote: Will it be logical to release the windows password to the server? No, I meant only that if the client application can be launched by the user, then the application can assume that the user is already authenticated. You might consider that the application has a separate login known only to it and the server. This way, the user logs in to Windows using his username and password, and the application connects to your server with its own authentication process. I guess the first question to ask is, what are you trying to prevent from happening? Unauthorized access to the client application, to the server, or both? Once the user is authenticated and, if you store the username/password on the client so he doesn't have to type it in again, then what's to prevent someone else from using the application, pretending to be the user? Marc MyXaml Advanced Unit Testing YAPO

          B 1 Reply Last reply
          0
          • M Marc Clifton

            cezeri wrote: Will it be logical to release the windows password to the server? No, I meant only that if the client application can be launched by the user, then the application can assume that the user is already authenticated. You might consider that the application has a separate login known only to it and the server. This way, the user logs in to Windows using his username and password, and the application connects to your server with its own authentication process. I guess the first question to ask is, what are you trying to prevent from happening? Unauthorized access to the client application, to the server, or both? Once the user is authenticated and, if you store the username/password on the client so he doesn't have to type it in again, then what's to prevent someone else from using the application, pretending to be the user? Marc MyXaml Advanced Unit Testing YAPO

            B Offline
            B Offline
            balkang
            wrote on last edited by
            #5

            -Unauthorized access to the client application is not important. The username and password given in client app will be used to connecting server.. Also password will be determined by server administrators. So i think windows authentication could not work. isolated storage seems as a better solution. Thanks for help

            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