Project

General

Profile

Actions

Bug #8366

open

Auth widget needs reload

Added by Torsten Schulz about 3 years ago. Updated almost 3 years ago.

Status:
Feedback
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
04/15/2021
Due date:
% Done:

0%

Estimated time:

Description

Hello,
I use the Wt::Auth for login. But when I close the browser, come back after hours (maybe next day) and will log in, it isn't working. I see the login page, can type in my credentials, but no action is working. Not Login-Button, not Register Link, not Lost Password link. I have to reload the page and then it is working.

I have set the reload-is-new-session to false, maybe that's related to that behaviour.

Actions #1

Updated by Korneel Dumon almost 3 years ago

  • Status changed from New to Feedback

Hey,
I looked into it a little bit. When you close the browser, the session is cleaned up after 5 seconds when using reload-is-new-session. We really expect a reload, not a 'come back after a few hours'. So I don't think it affects this.

Do you have any more info to make this reproducible?

Actions #2

Updated by Torsten Schulz almost 3 years ago

Korneel Dumon wrote in #note-1:

Hey,
I looked into it a little bit. When you close the browser, the session is cleaned up after 5 seconds when using reload-is-new-session. We really expect a reload, not a 'come back after a few hours'. So I don't think it affects this.

Do you have any more info to make this reproducible?

I had it two different projects. One of them is a small one. But the only information I have is, that it works as expected with fcgi. But when I run the same application with the built-in http through an reverse proxy (Apache2), I need to reload for the page is working. And even that I use the Auth widget, it isn't just the Auth fucntionality which isn't working. No events are working then.

Actions #3

Updated by Korneel Dumon almost 3 years ago

I would actually assume that if you close the browser and go back later, you are already refreshing somehow. Or do you think this is somehow not happening? Even when I let the browser restore my tabs, it always seems to refresh them.

If events are happening for a session that the server has already removed, I can imagine that you get the behavior you describe. The server would simply ignore those events.

Actions #4

Updated by Torsten Schulz almost 3 years ago

Korneel Dumon wrote in #note-3:

I would actually assume that if you close the browser and go back later, you are already refreshing somehow. Or do you think this is somehow not happening? Even when I let the browser restore my tabs, it always seems to refresh them.

If events are happening for a session that the server has already removed, I can imagine that you get the behavior you describe. The server would simply ignore those events.

I don't know why it happens. But I found out that it is a difference between using fcgi or built-in server. Which the built-in-server it is like described, but when I use fcgi, then everything is fine. Then I don't need to do a reload.

Actions

Also available in: Atom PDF