You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by di...@apache.org on 2003/06/29 17:11:46 UTC

cvs commit: xml-axis/java/src/org/apache/axis/session Session.java SimpleSession.java

dims        2003/06/29 08:11:46

  Modified:    java/src/org/apache/axis/transport/http AxisHttpSession.java
               java/src/org/apache/axis/session Session.java
                        SimpleSession.java
  Log:
  Fix for Bug 19489 - expose Session.invalidate()
  
  Revision  Changes    Path
  1.14      +7 -0      xml-axis/java/src/org/apache/axis/transport/http/AxisHttpSession.java
  
  Index: AxisHttpSession.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/transport/http/AxisHttpSession.java,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- AxisHttpSession.java	22 Apr 2003 19:35:51 -0000	1.13
  +++ AxisHttpSession.java	29 Jun 2003 15:11:46 -0000	1.14
  @@ -166,6 +166,13 @@
           // ???
       }
   
  +    /**
  +     * invalidate the session
  +     */
  +    public void invalidate() {
  +        rep.invalidate();
  +    }
  +    
       protected void ensureSession() {
           if (rep == null) {
                 rep = req.getSession();
  
  
  
  1.9       +5 -0      xml-axis/java/src/org/apache/axis/session/Session.java
  
  Index: Session.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/session/Session.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- Session.java	22 Apr 2003 19:35:45 -0000	1.8
  +++ Session.java	29 Jun 2003 15:11:46 -0000	1.9
  @@ -111,6 +111,11 @@
       public void touch();
       
       /**
  +     * invalidate the session
  +     */ 
  +    public void invalidate();
  +    
  +    /**
        * Get an Object suitable for synchronizing the session.  This method
        * exists because different session implementations might provide
        * different ways of getting at shared data.  For a simple hashtable-
  
  
  
  1.11      +9 -0      xml-axis/java/src/org/apache/axis/session/SimpleSession.java
  
  Index: SimpleSession.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/session/SimpleSession.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- SimpleSession.java	22 Apr 2003 19:35:45 -0000	1.10
  +++ SimpleSession.java	29 Jun 2003 15:11:46 -0000	1.11
  @@ -151,6 +151,15 @@
           lastTouched = System.currentTimeMillis();
       }
   
  +    /**
  +     * invalidate the session
  +     */
  +    public void invalidate() {
  +        rep = null;
  +        lastTouched = System.currentTimeMillis();
  +        timeout = -1;        
  +    }
  +    
       public long getLastAccessTime()
       {
           return lastTouched;