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. single instance of a Web applicaiton.

single instance of a Web applicaiton.

Scheduled Pinned Locked Moved ASP.NET
sysadmin
9 Posts 7 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.
  • P Offline
    P Offline
    Pranav Thakur
    wrote on last edited by
    #1

    Hi, I am working on web applicaiton. I have uploaded the application on server but I want only one person can access the applicaiton at a time. In other words I want only a single instance of my applicaiton running at a time.Remember I am on web applicaiton not window applicaiton.

    S E N T A 8 Replies Last reply
    0
    • P Pranav Thakur

      Hi, I am working on web applicaiton. I have uploaded the application on server but I want only one person can access the applicaiton at a time. In other words I want only a single instance of my applicaiton running at a time.Remember I am on web applicaiton not window applicaiton.

      S Offline
      S Offline
      sidbaruah
      wrote on last edited by
      #2

      If only one person could access it at a time, why would you make it a web application?? I would prefer a win app :confused: May be a singleton approach could work.. never used it thou..

      I was born dumb!! :laugh:Programming made me laugh:laugh:!!! --sid--

      1 Reply Last reply
      0
      • P Pranav Thakur

        Hi, I am working on web applicaiton. I have uploaded the application on server but I want only one person can access the applicaiton at a time. In other words I want only a single instance of my applicaiton running at a time.Remember I am on web applicaiton not window applicaiton.

        E Offline
        E Offline
        eyeseetee
        wrote on last edited by
        #3

        Please dont re-post as well.

        We are not a Code Charity

        1 Reply Last reply
        0
        • P Pranav Thakur

          Hi, I am working on web applicaiton. I have uploaded the application on server but I want only one person can access the applicaiton at a time. In other words I want only a single instance of my applicaiton running at a time.Remember I am on web applicaiton not window applicaiton.

          N Offline
          N Offline
          N a v a n e e t h
          wrote on last edited by
          #4

          Strange. What is the point of web application then ?

          All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia How to use google | Ask smart questions

          1 Reply Last reply
          0
          • P Pranav Thakur

            Hi, I am working on web applicaiton. I have uploaded the application on server but I want only one person can access the applicaiton at a time. In other words I want only a single instance of my applicaiton running at a time.Remember I am on web applicaiton not window applicaiton.

            T Offline
            T Offline
            Tamimi Code
            wrote on last edited by
            #5

            try to use an application variable,

            When you get mad...THINK twice that the only advice Tamimi - Code

            1 Reply Last reply
            0
            • P Pranav Thakur

              Hi, I am working on web applicaiton. I have uploaded the application on server but I want only one person can access the applicaiton at a time. In other words I want only a single instance of my applicaiton running at a time.Remember I am on web applicaiton not window applicaiton.

              A Offline
              A Offline
              Ashfield
              wrote on last edited by
              #6

              You could initiate some sort of logging in your app I guess, but what about timeouts etc?

              Bob Ashfield Consultants Ltd

              1 Reply Last reply
              0
              • P Pranav Thakur

                Hi, I am working on web applicaiton. I have uploaded the application on server but I want only one person can access the applicaiton at a time. In other words I want only a single instance of my applicaiton running at a time.Remember I am on web applicaiton not window applicaiton.

                G Offline
                G Offline
                Guffa
                wrote on last edited by
                #7

                There is always only a single instance of the web application running, regardless of the number of users, so what you are asking for would not help you at all. What you need to do is to have some kind of login so that you can identify the user, and add a limitation in the login so that only one user can be logged in at a time.

                Despite everything, the person most likely to be fooling you next is yourself.

                1 Reply Last reply
                0
                • P Pranav Thakur

                  Hi, I am working on web applicaiton. I have uploaded the application on server but I want only one person can access the applicaiton at a time. In other words I want only a single instance of my applicaiton running at a time.Remember I am on web applicaiton not window applicaiton.

                  E Offline
                  E Offline
                  eyeseetee
                  wrote on last edited by
                  #8

                  Do this: 1. Have a table with column named logged 2. When user1 has logged in fill column with value e.g. 1 3. If user2 tries to log in check if there is a value in the column 4. if so dont let user log in 5. When user 1 logs out clear column.

                  We are not a Code Charity

                  1 Reply Last reply
                  0
                  • P Pranav Thakur

                    Hi, I am working on web applicaiton. I have uploaded the application on server but I want only one person can access the applicaiton at a time. In other words I want only a single instance of my applicaiton running at a time.Remember I am on web applicaiton not window applicaiton.

                    A Offline
                    A Offline
                    Ashfield
                    wrote on last edited by
                    #9

                    Isn't this the same thing as your post 'single instance of an application using Application start in global.asax.'?

                    Bob Ashfield Consultants Ltd

                    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