cookie.setSecure(secure): secure=true => work on HTTPS only.
cookie.setSecure(secure)
cookie.setHttpOnly(true): invisible to JavaScript.
cookie.setHttpOnly(true)
cookie.setMaxAge(maxAge): maxAge=0: expire cookie now, maxAge<0: expire cookiie on browser exit.
cookie.setMaxAge(maxAge)
cookie.setDomain(domain): visible to domain only.
cookie.setDomain(domain)
domain
cookie.setPath("/"): visible to all paths.
cookie.setPath("/")
Single Sign On (SSO) Example with JSON Web Token (JWT) and Spring Boot
Single Log Out (SLO) Example with JSON Web Token (JWT), Spring Boot and Redis