Add server.session.store-dir support

Add support for a `server.session.store-dir` property which can be used
to specify where session data source be saved.

Fixes gh-4191
This commit is contained in:
Phillip Webb
2015-10-14 22:56:01 -07:00
parent 1a764d9c06
commit 922f8b6ba6
11 changed files with 124 additions and 8 deletions

View File

@@ -87,6 +87,7 @@ content into your application; rather pick only the properties that you need.
server.display-name= # the display name of the application
server.use-forward-headers= # if X-Forwarded-* headers should be used (default is off unless running in a known cloud)
server.session.persistent=false # true if session should be saved across restarts
server.session.store-dir= # dir used to save session data
server.session.timeout= # session timeout in seconds
server.session.tracking-modes= # tracking modes (one or more of "cookie" ,"url", "ssl")
server.session.cookie.name= # session cookie name

View File

@@ -3584,7 +3584,7 @@ Spring Session provides support for managing a user's session information. If yo
writing a web application and Spring Session and Spring Data Redis are both on the
classpath, Spring Boot will auto-configure Spring Session through its
`@EnableRedisHttpSession`. Session data will be stored in Redis and the session timeout
can be configured using the `server.session-timeout` property.
can be configured using the `server.session.timeout` property.