Example usage for javax.servlet.http HttpSession toString

List of usage examples for javax.servlet.http HttpSession toString

Introduction

In this page you can find the example usage for javax.servlet.http HttpSession toString.

Prototype

public String toString() 

Source Link

Document

Returns a string representation of the object.

Usage

From source file:org.structr.web.auth.HttpAuthenticator.java

private static String getSessionId(final HttpServletRequest request) {

    String existingSessionId = request.getRequestedSessionId();

    if (existingSessionId == null) {

        HttpSession session = request.getSession(true);

        logger.log(Level.INFO, "Created new HTTP session: {0}", session.toString());

        return session.getId();

    }/*w  w  w  .j a  v a 2  s . c om*/

    return existingSessionId;

}