FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Capture logoff on browser close
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Capture logoff on browser close [message #169750 is a reply to message #169739] Fri, 24 September 2010 15:46 Go to previous messageGo to previous message
matt[1] is currently offline  matt[1]
Messages: 40
Registered: September 2010
Karma:
Member
On Sep 24, 8:50 am, Bill Braun <m...@privacy.net> wrote:
> I would like to update a mysql record with a logoff time if the user
> fails to affirmatively logoff and only closes the browser. My research
> indicates this is fluky, unreliable, difficult, impossible, or all of
> the above. Any practices you know of that may improve the chances of
> capturing such a log off time?
>
> Bill B

This is true, but this is not the right place to ask for support.
There's no persistent connection between PHP and your client's
browser, so there's no way to communicate a browser close event unless
something is generated client-side. Same thing with Alvaro's ping
suggestions. I'd try an AJAX or JavaScript group. They should be
able to give you information that's more likely to be reliable across
a variety of browsers.

For example, how can you tell I closed the browser when my browser is
Lynx? :)
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Authentication code creation for google analytics API in PHP
Next Topic: APC + Multi-Site Install of Single Application
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Wed Nov 27 09:52:31 GMT 2024

Total time taken to generate the page: 0.03898 seconds