cookies hijacking session id copy and paste to uthorized

If login one user session was created then incognito mode login another user with session ..if copy 1st coookies value peste in 2nd session incpect mode application cookies then it acess 1st user how to solve in java spring boot

  http
      .sessionManagement()
          .sessionFixation().newSession();