tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From QM <qm...@brandxdev.net>
Subject Re: Session based object, accessible to all classes.
Date Tue, 28 Sep 2004 12:41:47 GMT
On Tue, Sep 28, 2004 at 12:28:11PM +0100, Pawson, David wrote:
:     Interface HttpSession ? Is that the one you mean Werner?
: Just give it any recognisable name and it returns the object
: based on this users session?

Yes.  Think of "session" as another scope, like "request" or
"application": it's a bucket in which you can store any old Object (just
be sure to cast it back to <your expected object> when you get it back).

Session scope is special because it is bound to, well, a session, which
should be a particular instance of a particular user account.  (i.e. if
"bob" logs in twice from different browsers, he will likely have two
different sessions.)

-QM

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message