----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files. Don't make us guess your problem!!!
----------------------------------------------------------------
My servlet is unable to find the session when executed from outside the
firewall, yet works when run from inside the firewall. I'm running from the
same machine, and the same Apache server is running the same servlet code in
both cases ( jsdk 2.0; jserv 1.1b2; jvm 1.21 on Solaris ). I didn't see
anything in the faq that seemed to point in the right direction. Jserv is
supposed to be using cookies for session mgmt
My initial servlet goes something like:
HttpSession distributorSession = _req.getSession( true ) ;
if ( distributorSession.isNew() ){
distributor = new Distributor() ;
dmzID = distributor.getIDFromCookie( _req ) ;
distributorSession.putValue( "this.data", distributor ) ;
}
distributor = (Distributor)distributorSession.getValue( "this.data"
) ;
and this part works fine.
When the 2nd servlet runs a few seconds later
if( _req.isRequestedSessionIdValid() ){
logManager.logMessage( "Requested session is valid" ) ;
}else{
logManager.logMessage( "Requested session is not valid" ) ;
}
HttpSession distributorSession = _req.getSession( false ) ;
I always get a null session, and can't use a getValue() afterwards.
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]