In my Spring Boot 1.4 based application I use Spring Session to store session data in the database with JDBC.
Spring Boot
Spring Session
JDBC
This works fine
Don't use whitespaces in the content of the cookie. It is mentioning whitespace as the invalid character.