Skip to content

JdbcOperationsSessionRepository #943

@mschallar

Description

@mschallar

Hello,

we are using spring-session-1.3.1.RELEASE and have multiple issues/recommendations:

  1. 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 and private final inner classes).

  2. Fire events whenever a session gets created/deleted, or just provide the possibility for adding listeners.

  3. 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 override createSession(). 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

Metadata

Metadata

Assignees

Labels

for: stack-overflowA question that's better suited to stackoverflow.comstatus: duplicateA duplicate of another issue

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions