Project

General

Profile

Bug #8366

Auth widget needs reload

Added by Torsten Schulz 3 months ago. Updated about 1 month 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.

#1

Updated by Korneel Dumon 3 months 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?

#2

Updated by Torsten Schulz 3 months 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.

#3

Updated by Korneel Dumon 3 months 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.

#4

Updated by Torsten Schulz about 1 month 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.

Also available in: Atom PDF