-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Description
Hello,
we are using spring-session-1.3.1.RELEASE
and have multiple issues/recommendations:
-
Modify the visibility for some classes to make them easier extendable. Composition doesn't work all the time (I'm speaking about those
private static
parameters andprivate final
inner classes). -
Fire events whenever a session gets created/deleted, or just provide the possibility for adding listeners.
-
It would be nice to have a strategy for setting the Spring SESSION_ID (e.g., for org.springframework.session.jdbc.JdbcOperationsSessionRepository). Right now you have to derive from
JdbcOperationsSessionRepository
and overridecreateSession()
. This way you can access your resources for determining the SESSION_ID, but:
To create a new org.springframework.session.jdbc.JdbcOperationsSessionRepository.JdbcSession
, you have to provide an e.g., org.springframework.session.MapSession.MapSession(String)
. Unfortunately the isNew
flag will be set to false
, hence the newly generated session will not be persisted within the repository.
Regards,
Manuel