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