Project

General

Profile

Feature #7742

Suspend/restore of sessions

Added by Roel Standaert 24 days ago. Updated 19 days ago.

Status:
New
Priority:
Normal
Target version:
-
Start date:
09/30/2020
Due date:
% Done:

0%

Estimated time:

Description

Typically, in the case of payment providers or single sign on systems, the user is redirected to perform the payment or login, and then redirected back to the application.

Wt currently removes the session when the user moves away from it (react to the unload event), or expires it after a while.

Because of this, payment or login is usually performed in a popup window, so the session can stay active.

We should be able to suspend a session before the redirect, and restore the session when redirected back, so the popup window is no longer necessary.

#1

Updated by Roel Standaert 19 days ago

  • Description updated (diff)
  • Assignee set to Roel Standaert

Possible interface:

class WApplication {
public:
  std::string suspend(std::chrono::steady_clock::duration expirationTime);
}

Suspends the session after the response is sent to the browser, returning the URL that can be used to wake up and resume the session. The optional duration indicates how long the session should remain suspended before it expires. By default, this time is unlimited? Maybe some other default with the option to set it to unlimited? Maybe add a configuration option for this expiration time?

Should some extra security be applied, e.g. a cookie?

Also available in: Atom PDF