I have an application which runs on tomcat behind apache 2.4.6 configured with mod_session_dbd. I need the session info that gets persisted in the database. I see that apache saves the session info as a cookie in the browser as well. But, when I fire a http request, request.getSession().getId() returns a different session id . Its returning the jsessionid created by the tomcat. I need the cookie 'session' at the server end to do some computation. request.getCookies() isn't helping either.
Any pointers?
How do I get the session id which gets persisted by apache in my requests?
Screenshot