Forum Stats

  • 3,770,053 Users
  • 2,253,055 Discussions


Logout takes over a minute from time to time

Pamela Member Posts: 201 Blue Ribbon
edited Oct 16, 2018 12:38PM in JDeveloper and ADF

Using JDeveloper   Version

Sometimes when the user has been logged in for a while without an activity it takes 1 min to logout instead of the usual one second. It is hard to reproduce.

Here is my logout method:

public String logout() {        FacesContext ctx = FacesContext.getCurrentInstance();        ExternalContext ectx = ctx.getExternalContext();        HttpSession session = (HttpSession)ectx.getSession(false);        try {            session.invalidate();        } catch (java.lang.IllegalStateException ex) {        }        return "exit"; }

I suspect it might be related to a activation and passivation. (When the logout is pressed the user session to get activated and this is why to take so long to get logged out after that).

But still it is quite a while for the activation to happen.