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. Does page execution stop on browser close event?

Does page execution stop on browser close event?

Scheduled Pinned Locked Moved ASP.NET
question
7 Posts 3 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.
  • R Offline
    R Offline
    rama charan
    wrote on last edited by
    #1

    hi all, i am performing an operation (which take some time assume 1 min ) and the user closes the browser . Will processing of that page continues or exits suddenly when client closes the browser (or client system hanged and restarted)? any suggestions or links are welcome.. thnks in advance

    Rama Charan Prasad "Be happy and Keep smiling.Thats what u want be always..:)"

    S G 2 Replies Last reply
    0
    • R rama charan

      hi all, i am performing an operation (which take some time assume 1 min ) and the user closes the browser . Will processing of that page continues or exits suddenly when client closes the browser (or client system hanged and restarted)? any suggestions or links are welcome.. thnks in advance

      Rama Charan Prasad "Be happy and Keep smiling.Thats what u want be always..:)"

      S Offline
      S Offline
      Sandeep Akhare
      wrote on last edited by
      #2

      rama charan wrote:

      Will processing of that page continues or exits suddenly when client closes the browser (or client system hanged and restarted)?

      It will continue :-> :->

      rama charan wrote:

      or client system hanged

      Might be possible if you are doing any heavy work and your pogramme get stuck in infinite loop or Block some where

      rama charan wrote:

      and restarted)?

      Never seen :doh: -- modified at 3:59 Wednesday 9th May, 2007:->:->:-D

      Thanks and Regards Sandeep If If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... "

      R G 2 Replies Last reply
      0
      • S Sandeep Akhare

        rama charan wrote:

        Will processing of that page continues or exits suddenly when client closes the browser (or client system hanged and restarted)?

        It will continue :-> :->

        rama charan wrote:

        or client system hanged

        Might be possible if you are doing any heavy work and your pogramme get stuck in infinite loop or Block some where

        rama charan wrote:

        and restarted)?

        Never seen :doh: -- modified at 3:59 Wednesday 9th May, 2007:->:->:-D

        Thanks and Regards Sandeep If If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... "

        R Offline
        R Offline
        rama charan
        wrote on last edited by
        #3

        thansk for your help The issue here is .i need to do some payment processing at server which may take some time on server ..All the code of waiting till process is complete is in the server code at web page . and hence client system is no way needed for it but page should be living to process the code right?. And about client system getting hanged ,It need not be due to my application but i can due to other reasons like another local windows application hanged and client user uses end task which is a possible case wherin our dear IE can also can get closed (i have seen cases ). i think i am clear now right

        Rama Charan Prasad "Be happy and Keep smiling.Thats what u want be always..:)"

        1 Reply Last reply
        0
        • R rama charan

          hi all, i am performing an operation (which take some time assume 1 min ) and the user closes the browser . Will processing of that page continues or exits suddenly when client closes the browser (or client system hanged and restarted)? any suggestions or links are welcome.. thnks in advance

          Rama Charan Prasad "Be happy and Keep smiling.Thats what u want be always..:)"

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

          rama charan wrote:

          Will processing of that page continues or exits suddenly when client closes the browser

          It will continue. You can check the Response.IsClientConnected property to find out if the browser is still waiting for the response. There is no "browser close event", nothing happens on the server if the browser stops waiting for the response. You have to actively monitor this propery in the code if you want the code to be aware of it. Otherwise the code will complete regardless if there is any browser waiting for the response or not. -- modified at 3:08 Wednesday 9th May, 2007

          --- single minded; short sighted; long gone;

          R 1 Reply Last reply
          0
          • S Sandeep Akhare

            rama charan wrote:

            Will processing of that page continues or exits suddenly when client closes the browser (or client system hanged and restarted)?

            It will continue :-> :->

            rama charan wrote:

            or client system hanged

            Might be possible if you are doing any heavy work and your pogramme get stuck in infinite loop or Block some where

            rama charan wrote:

            and restarted)?

            Never seen :doh: -- modified at 3:59 Wednesday 9th May, 2007:->:->:-D

            Thanks and Regards Sandeep If If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... "

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

            Sandeep Akhare wrote:

            Suppose you are writting a big file on the server side that takes one min to write but in mean time after 15 sec user close the browser that time the file will not save

            Not true. Closing the browser does not stop the code running on the server.

            --- single minded; short sighted; long gone;

            S 1 Reply Last reply
            0
            • G Guffa

              rama charan wrote:

              Will processing of that page continues or exits suddenly when client closes the browser

              It will continue. You can check the Response.IsClientConnected property to find out if the browser is still waiting for the response. There is no "browser close event", nothing happens on the server if the browser stops waiting for the response. You have to actively monitor this propery in the code if you want the code to be aware of it. Otherwise the code will complete regardless if there is any browser waiting for the response or not. -- modified at 3:08 Wednesday 9th May, 2007

              --- single minded; short sighted; long gone;

              R Offline
              R Offline
              rama charan
              wrote on last edited by
              #6

              thnak you i am clear now can u just also help me out with the other question i just posted above this with application upgradation issue. thnsk for your effort

              Rama Charan Prasad "Be happy and Keep smiling.Thats what u want be always..:)"

              1 Reply Last reply
              0
              • G Guffa

                Sandeep Akhare wrote:

                Suppose you are writting a big file on the server side that takes one min to write but in mean time after 15 sec user close the browser that time the file will not save

                Not true. Closing the browser does not stop the code running on the server.

                --- single minded; short sighted; long gone;

                S Offline
                S Offline
                Sandeep Akhare
                wrote on last edited by
                #7

                Guffa wrote:

                Closing the browser does not stop the code running on the server.

                Thanks for making the picture clear :doh: Can i get any article or documenation regarding this

                Thanks and Regards Sandeep If If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... "

                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