Question
Apple Inc
US
Last activity: 22 Mar 2019 18:35 EDT
How to getSession from HttpServletRequest
Hi Team,
We have written a filter where we are saving some details in HTTPSession like below.
javax.servlet.http.HttpServletRequest request =
(javax.servlet.http.HttpServletRequest)tools.getRequestor().getRequestorPage().getObject("pxHTTPServletRequest");
javax.servlet.http.HttpSession sessionDetails = request.getSession(); // Always returning NULL ??
But getSession is always returning null inside activity. We are able to read other HttpServletRequest methods like getCookies.
Please provide input in case you also have encountered similar situation.
Thanks
Gaurav