I'm trying to create a simple web app with servlet and jsp and I want to use sessions in order to maintain the user session (in fact I have a login page).
My question is: Is it necessary to control if the session is valid for that user in every servlet since I have more than one servlet which redirects to different jsp pages.
For example:
Login.jsp -> Login.java (servlet) (controls the if the login is valid or not)
If the login is valid, it redirects the user in the Welcome.jsp page. Here the user can do some stuff and than call another servlet class which does sth else. In the last servlet, is it necessary to control if the session is valid or not before showing the corresponding .JSP page?