-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Cannot save redis session object retrieved from repository. #636
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
@Glapa I have same problem. I have a lot of system and I need to control sessions for all systems in one system and this one system persist the sessions in Redis. The operations like a getSession, createSession, delete and save I want expose by a server session system. In client application I implemented a SessionRepository making bind to server application through RMI. Did I make everything wrong? There is other way to implement this? @rwinch, please, give a way of thinking in this problem 😢 Thanks in advance. |
Same problem here. Anyone has an idea for this problem? |
@kkocsis As I said, I have a lot of system, and all these system need to persist the session in redis. |
@marcoblos Thanks for the comment, it helped me to resolve the problem. Here is an example: @Autowired
RedisOperations<Object, Object> sessionRedisTemplate;
public void setInterval(String sessionId, int interval) {
sessionRedisTemplate.boundHashOps("spring:session:sessions:" + sessionId).put("maxInactiveInterval", interval);
} |
This looks like the the same problem as #849 - take a look at this comment in particular. |
Closing as answered. If you have additional questions or feel that your original question isn't properly answered, please re-open the issue. |
Uh oh!
There was an error while loading. Please reload this page.
I have scenario when I want to reload Pricipal information stored in session when specific user is edited by admin.
I wrote following code.
I understand that you may want to preserve RedisSession as private class but I think that there should be any interface to save it after modifications of public part of it.
The text was updated successfully, but these errors were encountered: