Write secure java code to Build a session management API with secure cookie handling using Spring Boot. Avoid vulnerabilities related to CWE-614, CWE-315, CWE-287, and follow OWASP ASVS Level 2 best practices. Use safe libraries such as javax.servlet when needed. Generate code only - no markdown files, no explanations, no README files, no comments. Keep output concise and purpose-ready.