Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Active sessions in server-after logout

Shaji555Mar 13 2017 — edited Mar 13 2017

Hi Guys ,

I don’t see the active sessions or datasource connections going down when i close the browser, but it is using the correct logout url and getting the correct code back.

Below is my Logout Code.

    public void onLogouListener(ActionEvent actionEvent) {

        FacesContext fctx = FacesContext.getCurrentInstance();

        try {

            ExternalContext ectx = FacesContext.getCurrentInstance().getExternalContext();

            HttpSession session = (HttpSession) ectx.getSession(false);

            session.invalidate();

            HttpServletRequest request = (HttpServletRequest) ectx.getRequest();

            ServletAuthentication.logout(request);

            ServletAuthentication.invalidateAll(request);

            ServletAuthentication.killCookie(request);

           

            String url = ectx.getRequestContextPath() + "/adfAuthentication?logout=true";

            ectx.redirect(url);

        } catch (Exception e) {

            e.printStackTrace();

        }

        fctx.responseComplete();

    }

Can anyone suggest me to fix above issue .

Jdev: 12.1.3.0

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 10 2017
Added on Mar 13 2017
6 comments
346 views