tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matyas William Egyhazy <mw...@cms.mail.virginia.edu>
Subject Re: Retrieve used sessions
Date Fri, 09 Nov 2001 20:57:34 GMT
you could use a timeout mechanism.

matt


On Fri, 9 Nov 2001, Jens [ISO-8859-2] Kühnberger wrote:

> So, if these methods are deprecated, how can I check on server side, if
> a user is still logged on?
> For example I store all users that are logged in. It's no problem to
> delete those who log off ,
> but how can I check for those who just close the browser?
>
> Jens
>
> Matt Egyhazy wrote:
>
> >these methods are deprecated in later j2ee:
> >
> >HttpSessionContext.getIds() which used to return a list of current session
> >ids
> >HttpSessionContext.getSession(sessionId) which would return a HttpSession
> >with the sessionId parameter.
> >
> >I think these were deprecated because application code could maliciously
> >attack other people's sessions (this is a problem for hosting companys that
> >use colocated apps).
> >
> >
> >Matt
> >
> >----- Original Message -----
> >From: "Jens Khnberger" <Kuehnberger@web.de>
> >To: <tomcat-user@jakarta.apache.org>
> >Sent: Friday, November 09, 2001 11:36 AM
> >Subject: Retrieve used sessions
> >
> >
> >>Hi,
> >>
> >>can someone please tell me, if it's possible (and if it is how) to
> >>retrieve all sessions or to check if a session is still used.
> >>
> >>Regards
> >>
> >>Jens
> >>
> >>
> >>
> >>--
> >>To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> >>For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
> >>Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>
> >>
> >
> >
> >--
> >To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> >For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
> >Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>
> >
> >
>
>
>
> --
> To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
> Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>
>



--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message