Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!postnews.google.com!d26g2000prn.googlegroups.com!not-for-mail From: Sravan Newsgroups: comp.lang.java.programmer Subject: Manage the user Count or restricting the logged in users Date: Fri, 27 May 2011 05:18:26 -0700 (PDT) Organization: http://groups.google.com Lines: 21 Message-ID: NNTP-Posting-Host: 122.248.176.193 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1306498706 11911 127.0.0.1 (27 May 2011 12:18:26 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 27 May 2011 12:18:26 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: d26g2000prn.googlegroups.com; posting-host=122.248.176.193; posting-account=WmlFOQoAAACpvUS7t_8ROOoXSseHZZ49 User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-Header-Order: ARLEUHNKC X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; InfoPath.2; MS-RTC LM 8; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729),gzip(gfe) Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:4646 Hi, I've an existing appication, which needs a change, and it has to be as minimal as possible. I'll have to restrcit the number of users to hundred. How can we handle. Some Information: -------------------------- Application runs on Servlets/JSP tech's --> http://www.xyzws.com/servletfaq/when-do-i-use-httpsessionlistener/7 This is idea to implement the above approach, and create a static variable to maintain the count of the numer of sessions, The only two ways that we need to handle are.. (for the session destroyed) a) session time-out and b) Closing the browser Will the above approach does the job? Or any other simpler solutions, we use WAS server.. any server settings that can help do this. Please suggest few inputs...