At this point you would be replicating a lot of the functionality of
roles in the servlet. Might as well use the built in stuff. Check
out request.isUserInRole();

Dror


On Thu, Nov 28, 2002 at 11:12:22AM -0000, Peter Dolukhanov wrote:
> A small concern with this is if the user's network connection dies, or
> the user closes his browser without properly logging off. To circumvent
> this you should have a method which is called whenever the session
> time's out (expires) and performs the same function to reset that value
> in the DB.
>
> Regards,
> Peter
>
> -----Original Message-----
> From: A mailing list about Java Server Pages specification and reference
> [mailto:[EMAIL PROTECTED]] On Behalf Of Kesavanarayanan, Ramesh
> (Cognizant)
> Sent: 28 November 2002 06:18
> To: [EMAIL PROTECTED]
> Subject: Re: How should i proceed with
>
> you can have a boolean value at the DB which will be default to zero.
> once
> he is logged in make that to 1.
> when he logs out make that to zero again. in this way if he logs in
> again
> you can check the value in the DB and prevent him.
>
> HTH
>
>  Regards
>
>  Ramesh Kesavanarayanan
>  [EMAIL PROTECTED]
>
>
>
> -----Original Message-----
> From: V.T.R.Ravi Kumar [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, November 28, 2002 10:17 AM
> To: [EMAIL PROTECTED]
> Subject: How should i proceed with
>
>
> Hi ,
>
> I have a situtation where in i have to restrict the access of an user in
> such way that the user has just one session . that is if he is logged at
> present then don't let him log again from any other pc until he logs of
> from
> the previous window ..
>
> How should i proceed with to achieve this....
> ----------------------------------------------------
>         V.T.R.Ravi Kumar
> Engineer,CCX,BHEL, Haridwar
> Phone : Office-91-0133-485260
>              Res  -91-0133-426121
> -----------------------------------------------------
>
> ========================================================================
> ==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

--
Dror Matalon
Zapatec Inc
1700 MLK Way
Berkeley, CA 94709
http://www.zapatec.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