how to find number of active user sessions in java

Solutions on MaxInterview for how to find number of active user sessions in java by the best coders in the world

showing results for - "how to find number of active user sessions in java"
Lilou
06 Sep 2020
1<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
2	pageEncoding="ISO-8859-1"%>
3<%@ page import="com.planetofbits.demo.listener.SessionCounter"%>
4<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
5<html>
6<head>
7<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
8<title>Home Page</title>
9</head>
10<body>
11	<%
12		int sessionCount = SessionCounter.getSessionCount();
13	%>
14	<h3>Number of active sessions are: <%=sessionCount%></h3>
15</body>
16</html>
17
similar questions