• Forum
  • Doc
  • Screenshots
  • Download
  • Donate
  • Contributors
  • Contact
  • Follow @phpfreechat
  • DEMO
  • Board index ‹ Version 1.x branch ‹ General Support (v1.x)
  • Change font size
  • FAQ
  • Register
  • Login

quit command wont run on close window

Moderators: OldWolf, re*s.t.a.r.s.*2

Post a reply
5 posts • Page 1 of 1

Postby AJBarnesy » Thu Jan 08, 2009 6:07 am

hey can anyone help me?

i got the quit_on_closedwindow param as true; but it still doesnt work, ive cleared the cache and reopened window and retried but it just wont run the quit script when i close the window.. and im using IE7 btw

can anyone help me fix the problem?
AJBarnesy
Member
 
Posts: 11
Joined: Thu Jan 08, 2009 3:54 am
Top

Postby OldWolf » Thu Jan 08, 2009 7:52 am

quit_on_closedwindow isn't very reliable to be honest. It's based on some sometimes iffy javascript, I'm not really that surprised it doesn't work. Keep in mind even without it the user will still eventually timeout... it will just take a little longer. :)
Signature:
Read before Posting: Forum Rules
Note: I am unable to offer support through PM/e-mail at this time.
OldWolf
Site Admin
 
Posts: 1918
Joined: Sun Sep 23, 2007 5:48 am
Top

Postby AJBarnesy » Thu Jan 08, 2009 8:04 am

well then is it at all possible that when they close the window and come back in they can continue chatting with their nickname.
cause when you close the window and come back in it says your nickname is taken when infact no-ones using it.
AJBarnesy
Member
 
Posts: 11
Joined: Thu Jan 08, 2009 3:54 am
Top

Postby phpfreechat » Thu Jan 08, 2009 9:06 am

Yes you have to wait for the timeout before coming back. Because if quit_on_closedwindow doesn't work (it's the cas on firefox I think), the only way to disconnect a user is to wait for the timeout.
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top

Postby OldWolf » Fri Jan 09, 2009 2:39 am

And to be clear, this isn't a flaw with phpfreechat, but just how things work with browsers and the languages used.

Essentially when they close the window, their session data is cleared on the user's end. Meanwhile, the ajax calls stop repeating, so the server receives no more "I'm still here" messages, and the chat keeps them alive long enough to see if they're just experiencing a slow connection. Once the timeout parameter is hit, it determines them to be actually gone and clears their data on the server's end.

You can adjust the timeout parameter to be a smaller number if you like, but really the best bet is for them to just not close and reopen the chat right away. ;)
Signature:
Read before Posting: Forum Rules
Note: I am unable to offer support through PM/e-mail at this time.
OldWolf
Site Admin
 
Posts: 1918
Joined: Sun Sep 23, 2007 5:48 am
Top


Post a reply
5 posts • Page 1 of 1

Return to General Support (v1.x)

Who is online

Users browsing this forum: No registered users and 4 guests

  • Board index
  • The team • Delete all board cookies • All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
Sign in
Wrong credentials
Sign up I forgot my password
.
jeu-gratuit.net | more partners
Fork me on GitHub