?
avatar brianteeman
brianteeman
29 May 2017

@wilsonge we discussed this at the combined sprint in london

It looks like the session keepalive stuff isnt working in J4 as i am being logged out in J4 much much more often than in j3

avatar brianteeman brianteeman - open - 29 May 2017
avatar joomla-cms-bot joomla-cms-bot - change - 29 May 2017
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 29 May 2017
avatar wilsonge
wilsonge - comment - 29 May 2017

I did do a quick test on that the next day and it seemed to be roughly working for me.

@dgt41 do you have any ideas on this?

avatar brianteeman
brianteeman - comment - 29 May 2017

i didnt think you got out of bed the next day

avatar wilsonge
wilsonge - comment - 29 May 2017

I can use a laptop from a sofa ;)

avatar wilsonge
wilsonge - comment - 29 May 2017

So seriously I tried setting timeout to 2 minutes and 5 minutes and hung around and it seemed to expire at the right time and not expire before that.

avatar brianteeman
brianteeman - comment - 29 May 2017

But is the keepalive script keeping it alive beyond the session timeout when it is supposed to?

avatar dgt41
dgt41 - comment - 29 May 2017

Probably https://github.com/joomla/joomla-cms/blob/4.0-dev/media/system/js/keepalive.js#L21
should be more specific like

keepaliveInterval = keepaliveOptions.interval ? parseInt(keepaliveOptions.interval) : 45 * 1000;
avatar franz-wohlkoenig franz-wohlkoenig - change - 29 May 2017
Status New Discussion
avatar franz-wohlkoenig franz-wohlkoenig - change - 29 May 2017
Category Authentication
avatar brianteeman
brianteeman - comment - 29 May 2017

it just logged me out while i was doing a form search

avatar brianteeman brianteeman - change - 14 Jun 2017
Status Discussion Closed
Closed_Date 0000-00-00 00:00:00 2017-06-14 19:53:53
Closed_By brianteeman
avatar brianteeman brianteeman - close - 14 Jun 2017
avatar brianteeman brianteeman - close - 14 Jun 2017
avatar brianteeman brianteeman - change - 19 Jun 2017
Status Closed New
Closed_Date 2017-06-14 19:53:53
Closed_By brianteeman
avatar brianteeman brianteeman - reopen - 19 Jun 2017
avatar brianteeman brianteeman - reopen - 19 Jun 2017
avatar franz-wohlkoenig franz-wohlkoenig - change - 19 Jun 2017
Status New Discussion
avatar Bakual
Bakual - comment - 28 Jun 2017

It's actually not the keepalive. It's the session in general which doesn't get refreshed.
To reproduce:

  • Set sesssion lifetime to 1 minute
  • Do stuff for one minute. Even randomly clicking things will get you logged out after that minute.
avatar Bakual
Bakual - comment - 28 Jun 2017

Umm, I have that behavior also in staging. Is that new? I thought a page reload used to reset the session lifetime? Now it works again after I closed the browser. I have no clue ?

avatar wilsonge
wilsonge - comment - 28 Jul 2017

Update:
I've been playing with this a bit more and I agree with Thomas - I logged the responses of the javascript keepalive. Set a session time of two minutes (which mean the session refreshes every 1 minute). The first keepalive returned good. the second returned a 403 (because i no longer had permission to access the backend because my session had timed out :( )

avatar brianteeman
brianteeman - comment - 28 Jul 2017

I am wondering if it is related to the session handler. I have noticed lots of session******.php files

avatar wilsonge
wilsonge - comment - 19 Aug 2017

OK. I've literally spent days figuring this out. And it's a one line fix (of course). #17623

avatar wilsonge wilsonge - change - 19 Aug 2017
Status Discussion Closed
Closed_Date 0000-00-00 00:00:00 2017-08-19 14:14:29
Closed_By wilsonge
avatar wilsonge wilsonge - close - 19 Aug 2017

Add a Comment

Login with GitHub to post a comment