I have a
servlet that calls other classes and passes the request and response objects to them in a hashtable. Everyting works fine but when i call my login class from my command processor servlet the login class stored the users access level in the session with the following code:
HttpSession session = req.getSession(true);
session.setAttribute("access", accessLevel);
Later on one of my other servlet i try and access the accesslevel but it only returns null. what can it be?
the code in the class that want to access the session is as follows: HttpSession session = req.getSession(false);
String access = (String) session.getAttribute("access");