The object that implements HttpSessionBindingListener would have to know
who's session they are bound to so that they could properly remove that
entry from the HashSet (or HashMap).
    (*Chris*)

----- Original Message -----
From: "SANJIB BISWAS" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, October 19, 2001 6:38 PM
Subject: Re: [JSP-INTEREST] Multiple users


> Hi Chris,
> Thanks for your suggestion.
> Just a little query, if I create a HashMap of dept as
> "key"  and values as "Y" & "N" flags and a
> sessiontimeout occurs , how will I know which
> department need to be flaged out ?
> Thanks
> Sanjib
>
>
> --- Chris Pratt <[EMAIL PROTECTED]> wrote:
> > Obviously, to accomplish this, you have to keep
> > track of who is logged into
> > your system.  One place to do this is using the
> > Application Scope within the
> > JSP's.
> >
> > You could put a HashSet in the Application Scope
> > that contains the UserID's
> > (or Departments) of all the Logged in Users.
> >
> > When a user Logs Off, you would have to remember to
> > remove them from the
> > Set.
> >
> > One thing to remember, if the user forgets to log
> > off, or walks away from
> > their computer for an extended period, everyone from
> > that department will be
> > locked out of the system.  To prevent this, you
> > might want to put an Object
> > in the user's HttpSession that implements the
> > HttpSessionBindingListener
> > interface.  When the session times out, you'll
> > receive the valueUnbound()
> > event and you can remove that user from the HashSet.
> >     (*Chris*)
> >
> > ----- Original Message -----
> > From: "SANJIB BISWAS" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Friday, October 19, 2001 4:07 PM
> > Subject: Re: [JSP-INTEREST] Multiple users
> >
> >
> > > Hi Franco ,
> > > Here is more detailed information.
> > > As soon as the user logs on to the system by using
> > the
> > > web brouser , I do an authentication of the valid
> > user
> > > and then get the detailed information of the user
> > from
> > > the database and this information contains the
> > > information of the user's department. I want that
> > at
> > > this moment if an user is already logged on from
> > the
> > > same departmnet then throw this new user out of
> > the
> > > system.
> > > Thanks
> > > Sanjib
> > > --- "Miao, Franco CAWS:EX"
> > > <[EMAIL PROTECTED]> wrote:
> > > > Need more detail info, like how to logon your
> > system
> > > > through Brower or what?
> > > > What application they normally run in your
> > system...
> > > >
> > > > Franco
> > > >
> > > >
> > > >
> > > > -----Original Message-----
> > > > From: sanjib B [mailto:[EMAIL PROTECTED]]
> > > > Sent: Friday, October 19, 2001 3:27 PM
> > > > To: [EMAIL PROTECTED]
> > > > Subject: Multiple users
> > > >
> > > >
> > > > Hi All,
> > > > I am having a problem in determining how can I
> > > > prevent users from the same
> > > > department logging on to my system ? (In my
> > system
> > > > users always belong to
> > > > one department.) Any suggestions ??
> > > >
> > > > Thanks
> > > > Sanjib
> > > >
> > > >
> > >
> >
>
===========================================================================
> > > > To unsubscribe: mailto [EMAIL PROTECTED]
> > with
> > > > body: "signoff
> > > > JSP-INTEREST".
> > > > For digest: mailto [EMAIL PROTECTED] with
> > body:
> > > > "set JSP-INTEREST
> > > > DIGEST".
> > > > Some relevant FAQs on JSP/Servlets can be found
> > at:
> > > >
> > > >  http://archives.java.sun.com/jsp-interest.html
> > > >  http://java.sun.com/products/jsp/faq.html
> > > >  http://www.esperanto.org.nz/jsp/jspfaq.jsp
> > > >  http://www.jguru.com/faq/index.jsp
> > > >  http://www.jspinsider.com
> > > >
> > > >
> > >
> >
>
===========================================================================
> > > > To unsubscribe: mailto [EMAIL PROTECTED]
> > with
> > > > body: "signoff JSP-INTEREST".
> > > > For digest: mailto [EMAIL PROTECTED] with
> > body:
> > > > "set JSP-INTEREST DIGEST".
> > > > Some relevant FAQs on JSP/Servlets can be found
> > at:
> > > >
> > > >  http://archives.java.sun.com/jsp-interest.html
> > > >  http://java.sun.com/products/jsp/faq.html
> > > >  http://www.esperanto.org.nz/jsp/jspfaq.jsp
> > > >  http://www.jguru.com/faq/index.jsp
> > > >  http://www.jspinsider.com
> > >
> > >
> > > __________________________________________________
> > > Do You Yahoo!?
> > > Make a great connection at Yahoo! Personals.
> > > http://personals.yahoo.com
> > >
> > >
> >
>
===========================================================================
> > > To unsubscribe: mailto [EMAIL PROTECTED] with
> > body: "signoff
> > JSP-INTEREST".
> > > For digest: mailto [EMAIL PROTECTED] with
> > body: "set JSP-INTEREST
> > DIGEST".
> > > Some relevant FAQs on JSP/Servlets can be found
> > at:
> > >
> > >  http://archives.java.sun.com/jsp-interest.html
> > >  http://java.sun.com/products/jsp/faq.html
> > >  http://www.esperanto.org.nz/jsp/jspfaq.jsp
> > >  http://www.jguru.com/faq/index.jsp
> > >  http://www.jspinsider.com
> >
> >
> >
> _________________________________________________________
> > Do You Yahoo!?
> > Get your free @yahoo.com address at
> > http://mail.yahoo.com
> >
> >
> >
>
===========================================================================
> > To unsubscribe: mailto [EMAIL PROTECTED] with
> > body: "signoff JSP-INTEREST".
> > For digest: mailto [EMAIL PROTECTED] with body:
> > "set JSP-INTEREST DIGEST".
> > Some relevant FAQs on JSP/Servlets can be found at:
> >
> >  http://archives.java.sun.com/jsp-interest.html
> >  http://java.sun.com/products/jsp/faq.html
> >  http://www.esperanto.org.nz/jsp/jspfaq.jsp
> >  http://www.jguru.com/faq/index.jsp
> >  http://www.jspinsider.com
>
>
> __________________________________________________
> Do You Yahoo!?
> Make a great connection at Yahoo! Personals.
> http://personals.yahoo.com
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://archives.java.sun.com/jsp-interest.html
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.jsp
>  http://www.jguru.com/faq/index.jsp
>  http://www.jspinsider.com


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

Reply via email to