Before asking for help please read "How to request help" by clicking on that tab above here.
  • Page:
  • 1

TOPIC:

Logged in keep alive timeframe 1 month 5 days ago #1

  • MAV
  • MAV's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 34
Hi to all,

in my actual version 2.0.9 installation I cannot find the controls for the keep alive timeframe. I.e 7200 for 2 hours of permanent login.

Please direct me to right place.

Thank you
Micha
Productive: webtrees 2.0.9
justlight theme
php 7.3
MySQL 5.7.23

Testing: webtrees 2.0.10
justlight theme
on notebook with local
webserver

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

Logged in keep alive timeframe 1 month 4 days ago #2

  • bertkoor
  • bertkoor's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Greetings from Utrecht, Holland
  • Posts: 2203
stamboom.BertKoor.nl runs on webtrees v1.7.13

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

Last edit: by bertkoor.

Logged in keep alive timeframe 1 month 4 days ago #3

  • fisharebest
  • fisharebest's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 14084
> I cannot find the controls for the keep alive timeframe.

Sessions do not have a lifetime. They should stay open until you close your browser.

This is set in the "lifetime = 0" parameter here:
github.com/fisharebest/webtrees/blob/2.0.11/app/Session.php#L78

We do have a "cleanup" process - which bertkoor identified.

This removes sessions that have been inactive for more than 24 hours.
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.

Logged in keep alive timeframe 1 month 4 days ago #4

  • fisharebest
  • fisharebest's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 14084
FYI, here is a webtrees cookie:

You can see that the expiry is set to "Session".

Greg Roach - This email address is being protected from spambots. You need JavaScript enabled to view it. - fisharebest.webtrees.net
Attachments:

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

Logged in keep alive timeframe 1 month 4 days ago #5

  • MAV
  • MAV's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 34
Hi, bertkoor,

ok, apparently this functionality is not yet implemented. However, I do not want to use a change in the programme code. Especially if the change disappears with every update. Besides, I lack any competence to do so.

So I hope for the future for this implementation.

Thank you very much for the clarification.

Have a nice day
Micha
Productive: webtrees 2.0.9
justlight theme
php 7.3
MySQL 5.7.23

Testing: webtrees 2.0.10
justlight theme
on notebook with local
webserver

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

Logged in keep alive timeframe 1 month 4 days ago #6

  • MAV
  • MAV's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 34
Hi Greg,

I'm using wetrees in FireFox (always actuel version) in variable count of tabs. I encounter an automatic logout after less than two hours. I will observ this behaviour and will report. Is it possible that an interruption of the internet connection leads to this behaviour?

Greetings from Micha
Productive: webtrees 2.0.9
justlight theme
php 7.3
MySQL 5.7.23

Testing: webtrees 2.0.10
justlight theme
on notebook with local
webserver

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

Logged in keep alive timeframe 1 month 4 days ago #7

  • fisharebest
  • fisharebest's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 14084
@MAV - you didn't actually say what you want to achieve.

Do you want people to be logged out sooner - or not at all.

Both would have different solutions.
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.

Logged in keep alive timeframe 1 month 4 days ago #8

  • MAV
  • MAV's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 34
in the control panel of the 1.7.xx version of webtrees I was able to set a maximum time in seconds of inactivity before I was automatically logged out. In my example, this was 7200 seconds, which is equivalent to 2 hours. This setting is of course for convenience. For example, if I want to take a nap in the afternoon. I am retired, I can allow myself to do that.

This would calm me down if I forget to log out and leave an orphaned session.

That's all

edit: As I understood it, this was a global value for all users.
Productive: webtrees 2.0.9
justlight theme
php 7.3
MySQL 5.7.23

Testing: webtrees 2.0.10
justlight theme
on notebook with local
webserver

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

Last edit: by MAV.
Do you need a web hosting solution for your webtrees site?
If you prefer a host that specialises in webtrees, the following page lists some suppliers able to provide one for you: 

Logged in keep alive timeframe 1 month 4 days ago #9

  • fisharebest
  • fisharebest's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 14084
Sorry - it is still not clear exactly what you want.

Do you want to be logged out sooner than you are at present?
Do you want to stay logged in longer than at present?
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.

Logged in keep alive timeframe 1 month 4 days ago #10

  • MAV
  • MAV's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 34
It would be nice to be able to set the time limit for inactivity as an administrator in ones own responsibility in the settings for the website. This was possible in the 1.7.xx version.

The automatic log out after 24 hours, as mentioned earlier in this thread, can be kept as a fall back.

Was that understandable now?

Now it's time to watch the sunrise
Micha
Productive: webtrees 2.0.9
justlight theme
php 7.3
MySQL 5.7.23

Testing: webtrees 2.0.10
justlight theme
on notebook with local
webserver

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

Logged in keep alive timeframe 1 month 4 days ago #11

  • bertkoor
  • bertkoor's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
  • Greetings from Utrecht, Holland
  • Posts: 2203

MAV wrote: I encounter an automatic logout after less than two hours. I will observ this behaviour and will report. Is it possible that an interruption of the internet connection leads to this behaviour?


Yes, that is certainly possible. The browser cookie containing the session has no explicit expiry date/time. That means it should exist as long as the browser is not closed. But there seem to be implementation differences between browsers. I've read that Chrome might behave different than other browsers. From my own experience: whenever my mac has been put asleep and wakes up again, my session in Safari with webtrees has always ended. So from experience I know the first thing I have to do is log in again. I do that in a new tab, so the already opened tab is not affected.
stamboom.BertKoor.nl runs on webtrees v1.7.13

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

Last edit: by bertkoor.

Logged in keep alive timeframe 1 month 4 days ago #12

  • MAV
  • MAV's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 34
Hi bertkoor

actually unlikely in my case. My notebook does not go into standby and does not go to sleep. In the website logs I filtered for auth, since Sept. 2020 106. Then set the filter at message to login, now 92. With message filter logout, there were 13. This tells me that a logout is only logged if I do it myself. That seems logical and doesn't really need to be discussed.


But this story is getting pretty far off topic. If the settings mentioned are not available in wt 2 and will not be in the future, so what? That at least keeps my playing instinct under control.
Productive: webtrees 2.0.9
justlight theme
php 7.3
MySQL 5.7.23

Testing: webtrees 2.0.10
justlight theme
on notebook with local
webserver

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

  • Page:
  • 1
Powered by Kunena Forum