Supermon 7.4+ Auto LogOut

Hello everyone,

It’s me again Joe KA6JOE. Does anyone knows how to stop or turn off automatic Logout on Supermon 7.4+? It seems like it logs me out every after 20 or 30 minutes. When I use Allmon3 which is the backside of Supermon 7.4+. it doesn’t happen and it stays logged on indefinitely unti I log out.

As always, your help and reply to my query is greatly appreciated,

Joe Turda de KA6JOE

Allmon3 has nothing to do with Supermon. Allmon3 is the web view provided with ASL v3. Supermon is another project not related to AllStarLink.

why are you wanting to stay logged in longer than you need o be?

Because I don 't want to log on every time I need to switch to a different node. Is there a way to keep it from logging off like the Allmon3?

is the nodes switching manually to connect or are you wanting to do it automatically?

you can try this
For Supermon, check the value of you "session.gc_maxlifetime= " setting in /etc/php/7.x/apache2/php.ini. The default value is 1440 seconds (24 minutes), which was driving me crazy. For more information, refer to What is the default lifetime of a session?

Allmon3’s cookie is not perpetual. It’s a session cookie that will be deleted when the browser windows are all closed in that “session”.

But wouldn’t that affect anything/everything you do in your browser (bank apps, etc…no thanks)…?

Bob
KK6RQ

no it only effects the session when you are logged into supermon. other windows have no bearing on it

Did you find a solution to this? It drives me crazy too.

I would suggest asking on the Supermon list on groups.io. Supermon is not an AllStarLink tool.

That old code uses PHP sessions, as mentioned above by default PHP sessions close when you close the session (browser).

In PHP settings by default set session.cookie_lifetime to 0 meaning when you close the session, the session ends.

You can adjust that by setting the lifetime to say 7 days by editing either the main PHP config, or the file in the supermon package session.php and adding something like this before the session_start() line

ini_set('session.cookie_lifetime', 60 * 60 * 24 * 7);

HOWEVER as the answer on this ancient Stack post says, you may have to adjust the garbage collection too with session.gc_maxlifetime

I did not test any of this though, none of the PHP projects we use at work use sessions any more its very old tech so your milage may vary.

1 Like