I'm trying to reset JSESSIONID after login, but I cannot. I have tried the following:
...
HttpSession ghostSession = request.getSession(false);
ghostSession.invalidate();
request.getSession(true);
...
// some more manipulations of the ghostSession here.
...
But the JSESSIONID doesn't get reset. Do I miss anything here? Is that because the manipulation of ghostSession
after it's invalidated is preventing the JSESSIONID being reset?
I'm using Resin 4.X as my web container BTW.
Thank you.