In my web application i neet to check session already exist or not.
i want to check this in my servlet and in jsp also.
is there any way to check this.
T
One way is to set a session id in the jsp and then check the same session id in the other jsp or servlet to check if it is alive or not.
HttpSession session = req.getSession(); session.getId();