spring-guides / gs-securing-web

Securing a Web Application :: Learn how to protect your web application with Spring Security.
http://spring.io/guides/gs/securing-web/
Apache License 2.0
364 stars 447 forks source link

Login does not work without set cookie name #47

Closed stephandorer closed 1 year ago

stephandorer commented 5 years ago

The login does not work. Since no cookie is not set, the Authentication is removed between requests.

Solution: Create application.properties and set server.servlet.session.cookie.name

dsyer commented 5 years ago

Works for me. The default cookie name is JSESSIONID. Maybe you switched that off somehow?