Mohammad Bhuyan, I've pushed this commit based on your suggestion:
https://github.com/ngocdaothanh/xitrum/commit/0b42eaf921e20a834b12ee261760dbdb423a9a7e
When storing session (when sending back response to browser):
If session is empty:
- If browser did not send session cookie: do nothing, do not send back
useless cookie
- If browser did send session cookie: set max age to 0 to make browser
delete session cookie immediately
Also, for simplicity, resetSession() has been changed to
session.clear().
To try this version, in your project's build.sbt file:
libraryDependencies += "tv.cntt" %% "xitrum" % "1.9.11-SNAPSHOT"