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 #169758 is a reply to message #169750] Fri, 24 September 2010 21:13 Go to previous messageGo to previous message
me is currently offline  me
Messages: 192
Registered: September 2010
Karma:
Senior Member
On 9/24/2010 11:46 AM, matt wrote:
> 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? :)

Thank you, Matt. I'm new to this, and while I realize there is a clean
distinction between PHP and MySQL, I do not always know where one stops
and the other starts in practice. I had assumed that this would have
been associated in some way with the session closing, and was thus in
the ballpark of PHP. Good to know, thanks again.

Bill B
[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: Sat Nov 30 11:19:37 GMT 2024

Total time taken to generate the page: 0.03765 seconds