Published
- 1 min read
java servlets session call
The solution for this is noted below
java servlets session call
Solution
//force creation of new session
HttpSession session = req.getSession(true);
//get session if active, return null otherwise
HttpSession session = req.getSession(false);
Try other methods by searching on the site. That is if this doesn’t work