emoncms icon indicating copy to clipboard operation
emoncms copied to clipboard

Prompt for login when session expires

Open chaveiro opened this issue 4 years ago • 3 comments

Currently when you've a PUBLIC dashboard open (with some feeds private) and the session expires (eg. you come back on your mobile device) it will start showing javascript errors and refresh doesn't work. Need to actively go to login page.

My suggestion is to implement a global mechanism that will pop-up a login modal prompt when required.

chaveiro avatar Jul 11 '21 12:07 chaveiro

Thanks @chaveiro noted, I will look into this error, I fixed a number of similar errors in the admin module today

TrystanLea avatar Jul 22 '21 17:07 TrystanLea

I've also seen other issue that might be related. If you're on inputs page with the device module installed. And there is a session expiring or the device api returns error (momentarily loss of connection) there will be a lot of javascript pop-up errors saying can't create device as its already existent. Related to https://github.com/emoncms/emoncms/issues/1693

chaveiro avatar Jul 23 '21 07:07 chaveiro

On top of this I've experienced recently a problem where when the session expires a login prompt appears and when correct login is entered, the url changes to the referrer with an added slash // and the login prompt keeps appearing. Can't login more, only on anonymous tab. Seems some error with session data. This is on php8.0.

chaveiro avatar Oct 08 '21 19:10 chaveiro