For session fixation prevention we have added oldsession.invalidate(); newSession = req.getSession(true); Here jboss is setting same cookie (from invalidated session) as JSESSIONID
Solution to this is, - inValidate session in new thread, and make current thread wait for its execution.