We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

Adjust the online time of users | Forum

fbkca
fbkca Sep 20 '13
Hi, 


I'm wondering if there is any way to adjust how long a user shows as online, even when they close the site. Can this be adjusted?


Thanks

Daisy Team
Daisy Oct 1 '13
The system works the following way: if a user clicks theSign out button, the system removes the entry about this user from ow_base_user_online table immediately. If a user simply closes the site without clicking the Sign out button, the system counts out 30 minutes from the latest user's activity using the entry from activityStamp column and then removes it.

You can increase the time in the /ow_system_plugins/base/bol/user_service.php file. Simply search for the deleteExpiredOnlineUsers function.
The Forum post is edited by Daisy Oct 1 '13
fbkca
fbkca Oct 1 '13
Thanks Daisy!
fbkca
fbkca Oct 2 '13
Do you if it's possible to not remove their entry when they click sign-out?


Thanks

Daisy Team
Daisy Oct 3 '13
You can find the onLogout function in the /ow_system_plugins/base/bol/user_service.php file.
fbkca
fbkca Oct 3 '13
ok thanks. I will look into that.