News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Change user online time threshold

Started by DEEPSNUYB, July 26, 2010, 03:13:58 AM

Previous topic - Next topic

DEEPSNUYB

It looks like the maximum you can input is 1440 minutes.  Which file do we edit to be able to increaepse that time and how?

xenovanis

Not entirely sure, but I believe it's using the max value set for session.gc_maxlifetime in your php configuration. In which case you should look at the file Load.php.

Again, not entirely sure.  ;)

What are you trying to accomplish?
"Insanity: doing the same thing over and over again and expecting different results."

Joker™

really if you set even 1440 it'll consume a lot of your server to keep all those member active.My advise keep that threshold number not too big.

Even if you want to go ahead  , then here it is

Sources\ManageSettings.php

// Prevent absurd boundaries here - make it a day tops.
if (isset($_POST['lastActive']))
$_POST['lastActive'] = min((int) $_POST['lastActive'], 1440);


Still will recommend you not to make the threshold value even near to 1440 hrs , rest is your choice.

Github Profile
Android apps
Medium

How to enable Post Moderation

"For the wise man looks into space and he knows there is no limited dimensions." - Laozi

All support seeking PM's get microwaved

DEEPSNUYB

Thanks the board is new so I'm just changing it to 30 days, it shouldn't hurt the server since it is a dedicated server and there is not much traffic.  Once the traffic gets going I'll change it back.  Thanks again.

Advertisement: