@Override public HttpSession getSession(boolean create) { return super.getSession(create); }
@Override public HttpSession getSession() { return super.getSession(); }
@Override public HttpSession getSession(boolean create) { HttpSession session = super.getSession(false); session = super.getSession(true); return session;
public HttpSession getSession(boolean create) { HttpSession httpSession; if (isHttpSessions()) { httpSession = super.getSession(false); if (httpSession == null && create) { //Shiro 1.2: assert that creation is enabled (SHIRO-266): if (WebUtils._isSessionCreationEnabled(this)) { httpSession = super.getSession(create); } else { throw newNoSessionCreationException(); } } } else { boolean existing = getSubject().getSession(false) != null; if (this.session == null || !existing) { Session shiroSession = getSubject().getSession(create); if (shiroSession != null) { this.session = new ShiroHttpSession(shiroSession, this, this.servletContext); if (!existing) { setAttribute(REFERENCED_SESSION_IS_NEW, Boolean.TRUE); } } else if (this.session != null) { this.session = null; } } httpSession = this.session; } return httpSession; }
@Override public HttpSession getSession(boolean create) { if (create) { sessionCreated = true; } return super.getSession(create); } }
@Override public HttpSession getSession() { sessionCreated = true; return super.getSession(); }
@Override public HttpSession getSession(boolean create) { if (create) { sessionCreated = true; } return super.getSession(create); } }
@Override public HttpSession getSession() { sessionCreated = true; return super.getSession(); }
HttpSession nativeSession = super.getSession(); try { session = (GemfireHttpSession) manager.wrapSession(context,
@Override public HttpSession getSession(boolean create) { HttpSession session = super.getSession(false); if (session != null) { return session; } if (create) { if (window.getContainer().getInvocation().getResponse().isCommitted()) { session = new SessionAfterCommitted(new IllegalStateException( "Cannot create a session after the response has been committed")); } else { try { session = super.getSession(true); } catch (IllegalStateException e) { session = new SessionAfterCommitted(e); } } } return session; }
@Override public HttpSession getSession(final boolean create) { HttpSession session = super.getSession(create); return session; }
@Override public HttpSession getSession() { HttpSession session = super.getSession(); return session; }
/** * {@inheritDoc} */ @Override public HttpSession getSession(final boolean create) { // Synchronized access synchronized (mutex) { return super.getSession(create); } }
@Override public HttpSession getSession(boolean create) { if (isClosed) return null; return session != null ? session : super.getSession(create); }
@Override public HttpSession getSession() { if (isClosed) return null; return session != null ? session : super.getSession(); }
@Override public HttpSession getSession(boolean create) { HttpSession session = super.getSession(false); if (create && session == null) { throw new IllegalStateException("Session creation forbidden"); } else { return session; } } }
@Override public HttpSession getSession(boolean create) { HttpSession base = super.getSession(create); if (base==null) return null; return webApp.getProxiedSession(base); } }
@Override public HttpSession getSession() { this.checkState(); return super.getSession(); }
@Override public HttpSession getSession(boolean create) { //need to wrap the session so get/setAttribute and get/putValue implementations handle Resources efficiently: HttpSession session = super.getSession(create); if (session != null) { session = new StormpathHttpSession(session); } return session; }
HttpSession getOriginalSession(boolean create) { // Find the top non-wrapped Http Servlet request HttpServletRequest req = (HttpServletRequest) getRequest(); while (req instanceof HttpServletRequestWrapper) { req = (HttpServletRequest) ((HttpServletRequestWrapper) req).getRequest(); } if (req != null) { return req.getSession(create); } else { return super.getSession(create); } }