prophy Posted September 5, 2007 Share Posted September 5, 2007 Could it be made a script that check if a user connection is breaked (for example internet connection is stopped or user is closed the browser). And not only to be displayed error message to the user but this event to be registered by my PHP script. For now the only idia that i have is a JavaScript event onClose() of the browser but this is not the solution that I want. I was thinking if there is a method for PHP to listening for an event of breaked connection with the user browser or something similar. Thanks in advance. Quote Link to comment Share on other sites More sharing options...
Jessica Posted September 5, 2007 Share Posted September 5, 2007 Well sessions last for the length of the browser being open. (IE, session.) However, PHP is server side, not client side. It can't tell when the client closes the browser. Javascript IS the way to go there. PS: The word you want is broken, not breaked. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.