Package com.caucho.server.session

Examples of com.caucho.server.session.SessionManager


                              HttpServletResponse response)
  {
    if (webApp == null)
      return;

    SessionManager manager = webApp.getSessionManager();
    String value = manager.createCookieValue();

    Cookie cookie = new Cookie("resinauthid", value);
    cookie.setVersion(1);

    long cookieMaxAge = 365L * 24L * 3600L * 1000L;
 
View Full Code Here


      sessionId = _invocation.getSessionId();

    if (sessionId == null)
      return _invocation;

    SessionManager oldSessionManager = _oldWebApp.getSessionManager();

    if (oldSessionManager != null
  && oldSessionManager.containsSession(sessionId)) {
      return _oldInvocation;
    }
    else
      return _invocation;
  }
View Full Code Here

    return getSession(false);
  }
 
  public HttpSession getSession(boolean create)
  {
    SessionManager manager = getSessionManager();
   
    setVaryCookie(getCookieName(manager));

    HttpSession session = super.getSession(create);
View Full Code Here

    return session;
  }

  public String getRequestedSessionId()
  {
    SessionManager manager = getSessionManager();
   
    setVaryCookie(getCookieName(manager));

    String id = super.getRequestedSessionId();
View Full Code Here

    return id;
  }

  public boolean isRequestedSessionIdValid()
  {
    SessionManager manager = getSessionManager();
   
    setVaryCookie(getCookieName(manager));

    boolean isValid = super.isRequestedSessionIdValid();
View Full Code Here

    return isValid;
  }

  public boolean isRequestedSessionIdFromCookie()
  {
    SessionManager manager = getSessionManager();
   
    setVaryCookie(getCookieName(manager));

    boolean isValid = super.isRequestedSessionIdFromCookie();
    if (isValid)
View Full Code Here

    return isValid;
  }

  public boolean isRequestedSessionIdFromURL()
  {
    SessionManager manager = getSessionManager();

    setVaryCookie(getCookieName(manager));

    boolean isValid = super.isRequestedSessionIdFromURL();
   
View Full Code Here

   */
  public SessionManager createSessionConfig()
    throws Exception
  {
    if (_isInheritSession)
      return new SessionManager(this);

    SessionManager manager = getSessionManager();

    return manager;
  }
View Full Code Here

      WebAppController parent = null;
      if (_controller != null)
        parent = _controller.getParent();
      if (_isInheritSession && parent != null
          && _sessionManager != parent.getWebApp().getSessionManager()) {
        SessionManager sessionManager = _sessionManager;
        _sessionManager = parent.getWebApp().getSessionManager();

        if (sessionManager != null)
          sessionManager.close();
      }

      if (_server != null) {
        if (getSessionManager() != null) {
          getSessionManager().init();
View Full Code Here

        ClassLoader oldLoader = thread.getContextClassLoader();

        try {
          thread.setContextClassLoader(getClassLoader());

          _sessionManager = new SessionManager(this);
        } catch (Throwable e) {
          throw ConfigException.create(e);
        } finally {
          thread.setContextClassLoader(oldLoader);
        }
View Full Code Here

TOP

Related Classes of com.caucho.server.session.SessionManager

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.