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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. .NET (Core and Framework)
  4. Keep Data Persistent [modified]

Keep Data Persistent [modified]

Scheduled Pinned Locked Moved .NET (Core and Framework)
question
4 Posts 2 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.
  • D Offline
    D Offline
    DotNetWWW
    wrote on last edited by
    #1

    Hi all , I have a table named "Permissions" which I read Application User Permissions from that table when the user enters username and password an Logon Window , After that I Load the user permissions in a ArrayList , Now I'm going to keep my current user permissions(ArrayList Object) persistent , because I want to access it in different parts of application for checking permissions. , Is it suitable to save it using AppDomain or you have a better suggestion? Thanks in advance . -- modified at 13:58 Saturday 27th October, 2007

    P 1 Reply Last reply
    0
    • D DotNetWWW

      Hi all , I have a table named "Permissions" which I read Application User Permissions from that table when the user enters username and password an Logon Window , After that I Load the user permissions in a ArrayList , Now I'm going to keep my current user permissions(ArrayList Object) persistent , because I want to access it in different parts of application for checking permissions. , Is it suitable to save it using AppDomain or you have a better suggestion? Thanks in advance . -- modified at 13:58 Saturday 27th October, 2007

      P Offline
      P Offline
      Pete OHanlon
      wrote on last edited by
      #2

      If it's going to be used in one application, then why not simply store it in a static class? Then everywhere that you need it, you will be able to access it.

      Deja View - the feeling that you've seen this post before.

      D 1 Reply Last reply
      0
      • P Pete OHanlon

        If it's going to be used in one application, then why not simply store it in a static class? Then everywhere that you need it, you will be able to access it.

        Deja View - the feeling that you've seen this post before.

        D Offline
        D Offline
        DotNetWWW
        wrote on last edited by
        #3

        Thanks , But This win app is on network and several users can run this app simultaneously , doesn't it cause any problem?

        P 1 Reply Last reply
        0
        • D DotNetWWW

          Thanks , But This win app is on network and several users can run this app simultaneously , doesn't it cause any problem?

          P Offline
          P Offline
          Pete OHanlon
          wrote on last edited by
          #4

          Sorry for taking so long to get back to you. Anyway, here's the answer.

          DotNetWWW wrote:

          Thanks , But This win app is on network and several users can run this app simultaneously , doesn't it cause any problem?

          No, because each user will have this app running in a different process space.

          Deja View - the feeling that you've seen this post before.

          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