tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From patri...@apache.org
Subject cvs commit: jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/session StandardSession.java StandardSessionFacade.java
Date Thu, 08 Aug 2002 04:03:44 GMT
patrickl    2002/08/07 21:03:44

  Modified:    catalina/src/share/org/apache/catalina/session
                        StandardSession.java StandardSessionFacade.java
  Log:
  The 2.4 Serlvet spec includes a new method HttpSession.logout() (see section 15.1.7)
  Submitted by:   Bob Herrmann (bob@jadn.com)
  
  Revision  Changes    Path
  1.3       +27 -4     jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/session/StandardSession.java
  
  Index: StandardSession.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/session/StandardSession.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- StandardSession.java	23 Jul 2002 12:49:55 -0000	1.2
  +++ StandardSession.java	8 Aug 2002 04:03:44 -0000	1.3
  @@ -1049,6 +1049,29 @@
   
   
       /**
  +     *
  +     * Logs the client out of the web server and invalidates all
  +     * sessions associated with this client. The scope of the logout
  +     * is the same as the scope of the authentication. For example, if
  +     * the servlet container implements single signon, the logout logs
  +     * the client out of all web applications on the servlet container
  +     * and invalidates all sessions associated with the same client.
  +     *
  +     * @exception IllegalStateException if this method is called on an
  +     *  already invalidated session
  +     */
  +    public void logout(){
  +
  +        if (!isValid)
  +            throw new IllegalStateException
  +                (sm.getString("standardSession.isNew.ise"));
  +
  +        invalidate();
  +    }
  +
  +
  +
  +    /**
        * Bind an object to this session, using the specified name.  If an object
        * of the same name is already bound to this session, the object is
        * replaced.
  
  
  
  1.2       +9 -4      jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/session/StandardSessionFacade.java
  
  Index: StandardSessionFacade.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/session/StandardSessionFacade.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- StandardSessionFacade.java	18 Jul 2002 16:47:53 -0000	1.1
  +++ StandardSessionFacade.java	8 Aug 2002 04:03:44 -0000	1.2
  @@ -216,5 +216,10 @@
           return session.isNew();
       }
   
  +    public void logout(){
  +        session.logout();
  +    }
  +
  +
   
   }
  
  
  

--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message