Example usage for javax.servlet.http HttpSessionContext getIds

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

Introduction

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

Prototype

@Deprecated
public Enumeration<String> getIds();

Source Link

Usage

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

/**
 * ? session? invalidate.//from   ww  w.  j a v  a2s  .  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);
    }
}