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 "Thomas Dorner (JIRA)" <ax...@ws.apache.org> on 2004/10/25 16:19:45 UTC

[jira] Updated: (AXIS-1618) AxisHttpSession

     [ http://issues.apache.org/jira/browse/AXIS-1618?page=history ]

Thomas Dorner updated AXIS-1618:
--------------------------------

    Attachment: AxisHttpSession.java

This class can replace the old AxisHttpSession class.
But the changes in the constructor will make this class
incompatible to the old one.

> AxisHttpSession
> ---------------
>
>          Key: AXIS-1618
>          URL: http://issues.apache.org/jira/browse/AXIS-1618
>      Project: Axis
>         Type: Bug
>   Components: Basic Architecture
>     Versions: 1.2RC1
>     Reporter: Thomas Dorner
>     Priority: Minor
>  Attachments: AxisHttpSession.java
>
> Hello all,
> I have extended the AxisHttpSession class form Glen Daniels, cause the Method touch is missing some logic.
> Now it is possible to touch the session, and the new timeout of the session (HttpSession) will move foreward. 
> Therefore I have also changed the constructors of the class.
> I hope you will take this changes in further axis releases and like it.
> If you don&#8217;t like it &#8211; you are free to kick it.
> The following is the code to generate new Session in my SessionHandler:
>  
>       private synchronized String getNewSession(MessageContext context){
>  
>             wsLogger.debug("[Methode: getNewSession()] - Enter method");
>             
>             HttpServletRequest request = (HttpServletRequest) context.getProperty(HTTPConstants.MC_HTTP_SERVLETREQUEST);
>             HttpSession httpSession = request.getSession(true);
>  
>             int sessionTimeoutParam = Integer.parseInt((String) this.getOption("sessionTimeout"));
>  
>             if(sessionTimeoutParam != 0){
>                   defaultSessionTimeout = sessionTimeoutParam;
>             }
>             
>             AxisHttpSession session = new AxisHttpSession(httpSession, defaultSessionTimeout);
>  
>             String id = session.getSessionID();
>              
>             wsLogger.debug("[Methode: getNewSession()] - New session was generated with ID : " + id);
>             
>             session.set("listener", new SessionTimeoutNotifier());
>             activeSessions.put(id, session);
>             
>             return id;        
>       }
>  
>  
> Thanks
> Thomas

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira