-
Notifications
You must be signed in to change notification settings - Fork 1.1k
JdbcOperationsSessionRepository #943
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi @mschallar,
|
Hi @vpavic,
|
@mschallar Can you provide an example of what you're trying to do, i.e. which exact Regarding the events, I don't believe having a single node based solution would be a good thing. We can eventually consider something similar to what was proposed in #590 a while ago. |
We wanted to assign a HttpServletRequest dependend SESSION_ID to the current Spring Session.
Do you see any other solution? |
Thanks for the feedback. So if I'm understanding correctly this is basically all about the custom session id strategy, i.e. the same topic #204 is about? |
Exactly like that. That would make perfect sense. If some hooks for a session deleted/created event would be implemented, it would help us developer out as well. We can define our own strategy regarding session creation/deletion, even cluster wide if even necessary. Thanks for the responses @vpavic! |
Thanks for following up @mschallar. Since your requests effectively duplicate #204 and #590 both of which are still open, I'd suggest you to track those issues, and if necessary provide more info or simply vote on each topic. I'm going to close this one for now, due to reasons in previous paragraph. |
I using Then I will use JdbcOperationsSessionRepository will save the JdbcSession to database. |
@wjun20314 You might find this comment useful. Also note that since your question is unrelated to this ticket it's preferable to open a new one or ask on our Gitter channel or Stack Overflow using Update: Now I see you've posted on SO (if this is you), I've provided an answer. |
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 theisNew
flag will be set tofalse
, hence the newly generated session will not be persisted within the repository.Regards,
Manuel
The text was updated successfully, but these errors were encountered: