We are having a web application in which we need to maintain the sessions.
for the same for every page except the login page we include a header.jsp
When user successfully logs in we save a javabean validUser in session scope.
the contents of the header.jsp which we include in every page are
<
jsp:useBean id="validUser" class="com.util.validUserBean" scope="session"/>
<c:if test="${validUser.userId<=0}">
<jsp:forward page="login.jsp"/>
</c:if>
I want to know wheter our technique is good?What things can go wrong in this technique?
Are we really tracking the session through this?