tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bárbara Vieira <barbar...@di.uminho.pt>
Subject Difference between org.apacha.catalina.Session and javax.servlet.http.HttpSession
Date Tue, 06 Nov 2007 16:10:33 GMT
Hi there!

This question is about Tomcat’s Architecture and CoyoteConnectors.

 

I would like to know the difference between
Session(org.apacha.catalina.Session) and
HttSession(javax.servlet.http.HttpSession) objects. 

In Request(org.apache.catalina.connector.Request) object  I get HttpSession
– request.getSession()  and Session – request.getSessionInternal() objects,
but I don’t know the difference between this objects on Tomcat’s
Architecture.  I suppose that this objects represents different sessions in
my Web Application, but this doesn’t make sense, because each Web
Application just have one session scope. 

I know that HttpSession is available from Session object –
session.getSession().

Another question about it is that, when I invalidate the HttpSession, am I
invalidating Session object too?

 

Thanks for help me,

Regards from Braga, Portugal

Bárbara Vieira


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message