You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Subbiah <sx...@utdallas.edu> on 2003/10/14 01:09:47 UTC

Message Context

Hi, 

In servlets if I use request.getSession() I get the session back, if there
is no current session, it returns a new session. 
Instead, if I use request.getSession(false) , if the request has no valid
HttpSession, this method returns null

How does it work in Axis.

Is the same for the session returned by MessageContext.
But mc.getSession(false) is not valid.

//My code
    //check for session variables
    MessageContext mc = MessageContext.getCurrentContext();
    Session session = mc.getSession();

Thank you.