Web based family history software

This Help forum is for issues relates to the latest release (1.7.0/1). For issues related to beta or github version please use their own Help forum.
Before asking for help please read "How to request help" by clicking on that tab above here."

Question Display "Last logged in" in "User administration"

More
8 years 7 months ago #21 by Norm
Far be it from me to understand what's going on here, but it seems that "activity_time" gets set in the following snippet.

includes/session.php:
Code:
echo __line__," activity_time ", Session::get('activity_time'), "<br>"; Session::start(array( 'gc_maxlifetime' => Site::getPreference('SESSION_TIME'), 'cookie_path' => parse_url(WT_BASE_URL, PHP_URL_PATH), )); echo __line__," activity_time ", Session::get('activity_time'), "<br>";

See the attached screenshot for the output.


> ...and I would love to have access to a machine that exhibits this behaviour ...

mboucher mentions this problem here and has a public facing server.

Norm

Debian Sid
PHP 7.0.14-2
Mysql 5.7.16-1 (Debian)
Apache/2.4.25 (Debian)
Attachments:

Please Log in or Create an account to join the conversation.

  • fisharebest
  • Away
  • Administrator
  • Administrator
More
8 years 7 months ago #22 by fisharebest
Replied by fisharebest on topic Display "Last logged in" in "User administration"
> mboucher mentions this problem here and has a public facing server.

I mean a machine on which I can edit the code to add debug, etc.

In any case, I have just submitted the change you suggested so that we set this value at login as well as at 5 minutes intervals.

I also reduced the interval to 1 minute.

Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net

Please Log in or Create an account to join the conversation.

More
8 years 7 months ago #23 by Norm
Thanks for the fix Greg. This wasn't a problem for me, I was just trying to help out.

> I mean a machine on which I can edit the code to add debug, etc.
You aren't by any chance vacationing in Texas, are you? :-)

Norm

Debian Sid
PHP 7.0.14-2
Mysql 5.7.16-1 (Debian)
Apache/2.4.25 (Debian)

Please Log in or Create an account to join the conversation.

More
8 years 7 months ago #24 by Enigma1964
Replied by Enigma1964 on topic Display "Last logged in" in "User administration"

fisharebest wrote: In any case, I have just submitted the change you suggested so that we set this value at login as well as at 5 minutes intervals.
I also reduced the interval to 1 minute.


Wait untill the next version for these changes?

Please Log in or Create an account to join the conversation.

More
8 years 7 months ago #25 by Norm
@Enigma1964 - Here is a link to the changes that Greg made if you want to manually edit your files.

Norm

Debian Sid
PHP 7.0.14-2
Mysql 5.7.16-1 (Debian)
Apache/2.4.25 (Debian)

Please Log in or Create an account to join the conversation.

More
8 years 7 months ago #26 by Enigma1964
Replied by Enigma1964 on topic Display "Last logged in" in "User administration"
It's working.

It is strange that when a user is logged in for 1 hour, the last logged in shows <5 minutes ago

Please Log in or Create an account to join the conversation.

More
8 years 7 months ago #27 by Enigma1964
Replied by Enigma1964 on topic Display "Last logged in" in "User administration"

Enigma1964 wrote: It's working.

It is strange that when a user is logged in for 1 hour, the last logged in shows <5 minutes ago


Problem solved.

I removed the lines 475-478 in file includes/session.php

Why update login time every x minutes?

Please Log in or Create an account to join the conversation.

  • fisharebest
  • Away
  • Administrator
  • Administrator
More
8 years 7 months ago #28 by fisharebest
Replied by fisharebest on topic Display "Last logged in" in "User administration"
> Why update login time every x minutes?

Because some site owners want to know who is active on their site right now.

Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net

Please Log in or Create an account to join the conversation.

Powered by Kunena Forum
}