The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
i'd like to develop a hack or mod, whatever you wanna call it that will:
1. determine if a member is logged on and if so... 2. when they close the browser, the logoff code is executed. this will keep the 'who's online' list clean on my site and reduce the connections to the db even though i'm not using persistance. so with that in mind, i've searched the site, assuming someone has done this already... couldn't find anything. anybody wanna point me in the right direction? or maybe even convince me this is a pointless endevour? |
#2
|
||||
|
||||
![]()
hmm, it's not possible with php to run a file when a user closes the browser, at least not that i know of.
the only way i could think of it would be a js which will call the logout when the browserwindow gets closed, but i'm not sure (i don't know JS very well ![]() also it's not a good idea, as if someone has more than one window open, and just closes one, he'd get logged out ![]() |
#3
|
|||
|
|||
![]()
Could you just change the 900 number for cookie limit to a lower number before it expires and closes that users session?
Syl... |
#4
|
||||
|
||||
![]()
What Xenon mentioned is correct.
You can not detect browser closing via javascript either. You can only detect window closings (browser window ie) but if you apply the hack in this event people who opens more than 1 window in your site will have very hard time. Besides your hack will be useless when user turned off javascripting. I'd say forget the hack or stick with Sylvus's suggestion |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|