I have Java application hosted on a Web Logic Server. When I try to set the cookie path and Same-Site attribute by configuring it in the Web.XML or Web Logic.xml files, then the session is lost and if try to set the cookie attributes through code then it creates another cookie with the same name "JSESSIONID" with the required path. But the original cookie remains as it is.