Example usage for javax.servlet.http HttpSessionContext getSession

List of usage examples for javax.servlet.http HttpSessionContext getSession

Introduction

In this page you can find the example usage for javax.servlet.http HttpSessionContext getSession.

Prototype

@Deprecated
public HttpSession getSession(String sessionId);

Source Link

Usage

From source file:com.hangum.tadpole.session.manager.SessionManager.java

/**
 * ? session? invalidate.//  w w w .j ava 2  s  .  c  o  m
 */
public static void invalidate() {
    try {
        HttpSession sStore = RWT.getRequest().getSession();

        HttpSessionContext hsc = sStore.getSessionContext();
        Enumeration ids = hsc.getIds();
        while (ids.hasMoreElements()) {
            String id = (String) ids.nextElement();

            if (logger.isDebugEnabled())
                logger.debug("==========================> " + hsc.getSession(id));
        }

    } catch (Exception e) {
        logger.error("user session invalidate", e);
    }
}