2016-01-26 8 views
8

これらのプロパティを使用してセッションメカニズムを完全に無効にできますか?埋め込み型httpサーバでセッションを無効にする

server.session.persistent=false 
server.session.timeout=0 

これを行う方法はありますか?

+0

「セッションを無効にする」とはどういう意味ですか?既定の「既定の」Springブートアプリケーションと比較して、どのような動作変更が期待されますか? – kryger

答えて

-2

私はそれがデフォルトで完全に無効になっていると思います。

ドキュメントで明示的に言っていませんが、空の値はそれを示しています。

server.session.cookie.comment= # Comment for the session cookie. 
server.session.cookie.domain= # Domain for the session cookie. 
server.session.cookie.http-only= # "HttpOnly" flag for the session cookie. 
server.session.cookie.max-age= # Maximum age of the session cookie in seconds. 
server.session.cookie.name= # Session cookie name. 
server.session.cookie.path= # Path of the session cookie. 
server.session.cookie.secure= # "Secure" flag for the session cookie. 
server.session.persistent=false # Persist session data between restarts. 
server.session.store-dir= # Directory used to store session data. 
server.session.timeout= # Session timeout in seconds. 
server.session.tracking-modes= # Session tracking modes (one or more of the following: "cookie", "url", "ssl"). 
+4

Untrue:設定なしSpring-Boot埋め込みTomcatはJSESSIONIDクッキーを設定します – fasseg

関連する問題