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. Browser close issue

Browser close issue

Scheduled Pinned Locked Moved ASP.NET
helpdatabase
13 Posts 5 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.
  • Y yrishi

    Thanks Abhijit, actually i have tried this before, but it will not work if pop up are blocked at client side... :( do you have any idea on this....

    C Offline
    C Offline
    Christian Graus
    wrote on last edited by
    #4

    You can make an AJAX call in that event, too. Of course, nothing you do is guarenteed to work, but an AJAX call will be more likely to work than a popup.

    Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

    Y 1 Reply Last reply
    0
    • Y yrishi

      Thanks Abhijit, actually i have tried this before, but it will not work if pop up are blocked at client side... :( do you have any idea on this....

      A Offline
      A Offline
      Abhijit Jana
      wrote on last edited by
      #5

      Yes It will not work if popup is blocked. Please try to implement as CG suggested insted of opening a popup.

      Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.

      1 Reply Last reply
      0
      • Y yrishi

        I have a web application. I want to be able to detect the user when they logoff. When they close the browser without logging off through our application. We are currently using a record in the database to track that user. We are able to handle this process if they logout normally through the app. Please help me on this issue. Thanks in advance Yrishi

        Y Offline
        Y Offline
        yesu prakash
        wrote on last edited by
        #6

        we can detect the user if he log off from your application or when close the browser. If the net disconnect..then the real issue arise, in such condition it is difficult to detect the user

        A 1 Reply Last reply
        0
        • Y yesu prakash

          we can detect the user if he log off from your application or when close the browser. If the net disconnect..then the real issue arise, in such condition it is difficult to detect the user

          A Offline
          A Offline
          Abhijit Jana
          wrote on last edited by
          #7

          yesu prakash wrote:

          If the net disconnect..then the real issue arise, in such condition it is difficult to detect the user

          :rolleyes:

          Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.

          Y 1 Reply Last reply
          0
          • A Abhijit Jana

            yesu prakash wrote:

            If the net disconnect..then the real issue arise, in such condition it is difficult to detect the user

            :rolleyes:

            Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.

            Y Offline
            Y Offline
            yesu prakash
            wrote on last edited by
            #8

            ??

            A 1 Reply Last reply
            0
            • Y yesu prakash

              ??

              A Offline
              A Offline
              Abhijit Jana
              wrote on last edited by
              #9

              The question he has asked that is nothing to do with the internet connection answer that you given. If you dont have the internet connection how will you access the Application. Session maintianed on server end. So If user is inactive or Brower closed session will automatically timeout on server end on given timeout peroiod. But he want to clear the database data on that time. If his code is written on Session_End Event This will automatically fire for the user when session time out will reached to end. Please correct me If I am wrong :)

              Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.

              modified on Wednesday, October 21, 2009 3:31 AM

              J 1 Reply Last reply
              0
              • C Christian Graus

                You can make an AJAX call in that event, too. Of course, nothing you do is guarenteed to work, but an AJAX call will be more likely to work than a popup.

                Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

                Y Offline
                Y Offline
                yrishi
                wrote on last edited by
                #10

                Thanks for your reply. can you plz help me on AJAX Call...

                A 1 Reply Last reply
                0
                • Y yrishi

                  Thanks for your reply. can you plz help me on AJAX Call...

                  A Offline
                  A Offline
                  Abhijit Jana
                  wrote on last edited by
                  #11

                  yrishi wrote:

                  can you plz help me on AJAX Call...

                  Please have a look : AJAX database example[^]

                  Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.

                  Y 1 Reply Last reply
                  0
                  • A Abhijit Jana

                    yrishi wrote:

                    can you plz help me on AJAX Call...

                    Please have a look : AJAX database example[^]

                    Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.

                    Y Offline
                    Y Offline
                    yrishi
                    wrote on last edited by
                    #12

                    Hi Abhijit, As we have discussed regarding "window.open". As we know, the only issue with this is if the pop up is blocked at client side then this will not work. this can be also handle, my concern is, can we stop window.open on page refresh event... because if i refresh then also this code is executing... Please reply..... Thanks Yrishi

                    1 Reply Last reply
                    0
                    • A Abhijit Jana

                      The question he has asked that is nothing to do with the internet connection answer that you given. If you dont have the internet connection how will you access the Application. Session maintianed on server end. So If user is inactive or Brower closed session will automatically timeout on server end on given timeout peroiod. But he want to clear the database data on that time. If his code is written on Session_End Event This will automatically fire for the user when session time out will reached to end. Please correct me If I am wrong :)

                      Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you.

                      modified on Wednesday, October 21, 2009 3:31 AM

                      J Offline
                      J Offline
                      J Xie
                      wrote on last edited by
                      #13

                      Session_End will only fire for in-proc session provider. Basically, there is no 100% perfect way to achieve the purpose he want.

                      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