@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
Labels |
Added:
?
|
i didnt think you got out of bed the next day
I can use a laptop from a sofa ;)
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.
But is the keepalive script keeping it alive beyond the session timeout when it is supposed to?
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;
Status | New | ⇒ | Discussion |
Category | ⇒ | Authentication |
it just logged me out while i was doing a form search
Status | Discussion | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2017-06-14 19:53:53 |
Closed_By | ⇒ | brianteeman |
Status | Closed | ⇒ | New |
Closed_Date | 2017-06-14 19:53:53 | ⇒ | |
Closed_By | brianteeman | ⇒ |
Status | New | ⇒ | Discussion |
It's actually not the keepalive. It's the session in general which doesn't get refreshed.
To reproduce:
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
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 :( )
I am wondering if it is related to the session handler. I have noticed lots of session******.php files
Status | Discussion | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2017-08-19 14:14:29 |
Closed_By | ⇒ | wilsonge |
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?