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."
  • Page:
  • 1
  • 2

TOPIC:

Display "Last logged in" in "User administration" 5 years 8 months ago #21

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:
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.

Display "Last logged in" in "User administration" 5 years 8 months ago #22

  • fisharebest
  • fisharebest's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 14506
> 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 - This email address is being protected from spambots. You need JavaScript enabled to view it. - fisharebest.webtrees.net

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

Display "Last logged in" in "User administration" 5 years 8 months ago #23

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.

Display "Last logged in" in "User administration" 5 years 8 months ago #24

  • Enigma1964
  • Enigma1964's Avatar
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 183

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.

Display "Last logged in" in "User administration" 5 years 8 months ago #25

@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.

Display "Last logged in" in "User administration" 5 years 8 months ago #26

  • Enigma1964
  • Enigma1964's Avatar
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 183
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.

Display "Last logged in" in "User administration" 5 years 8 months ago #27

  • Enigma1964
  • Enigma1964's Avatar
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 183

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.

Display "Last logged in" in "User administration" 5 years 8 months ago #28

  • fisharebest
  • fisharebest's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 14506
> Why update login time every x minutes?

Because some site owners want to know who is active on their site right now.
Greg Roach - This email address is being protected from spambots. You need JavaScript enabled to view it. - fisharebest.webtrees.net

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

  • Page:
  • 1
  • 2
Powered by Kunena Forum