Questions tagged [spring-session]

Spring Session provides a common infrastructure for managing user’s session information.

Spring Session provides a common infrastructure for managing user’s session information. This provides many Benefits including:

  • Accessing a session from any environment (i.e. web, messaging infrastructure, etc)

  • In a web environment

    • Support for clustering in a vendor neutral way

    • Pluggable strategy for determining the session id

    • Easily keep the HttpSession alive when a WebSocket is active

Resources

748 questions
8
votes
2 answers

Unable to start spring-boot application after configuring spring-session-data-redis

After configuring spring-session-data-redis in a demo spring-boot project, bootRun task fails with the following message: *************************** APPLICATION FAILED TO START *************************** Description: Parameter 0 of method…
Alex Lipov
  • 13,503
  • 5
  • 64
  • 87
8
votes
1 answer

Spring Session not working with Sitemesh

I'm working on implementing Spring Session in a legacy application. I followed the Spring documentation to get the session library implemented and everything seems to be working well, except.... There is a UI element that is decorated on every page…
user1521567
  • 1,743
  • 3
  • 21
  • 31
7
votes
3 answers

notify-keyspace-events in Redis

I'd like to work with Redis for manipulating sessions.But I get failure when running the spring boot app.So I guess that this error is coming from maven dependencies especially version conflicts. Here is my maven dependencies:
Mohamed Aoutir
  • 613
  • 3
  • 11
  • 22
7
votes
3 answers

Error processing condition on org.springframework.boot.autoconfigure.context.PropertyPlaceholderAutoConfiguration

After adding 2 dependencies shown below to my application everything works fine my session data is written to my local redis server, but when i try to specify different address of redis server i got an error. I assume that error is connected with…
bkubiak
  • 315
  • 2
  • 3
  • 12
7
votes
2 answers

Spring Boot - how to conditionally enable/disable sessions

I've built a REST API service using Spring where I've enabled sessions using MongoDB: @Configuration @EnableMongoHttpSession(maxInactiveIntervalInSeconds = Globals.SESSION_MAX_INTERVAL) public class SessionConfig { @Bean public…
mwieczorek
  • 2,107
  • 6
  • 31
  • 37
7
votes
1 answer

Spring session redis while using custom user objects

I'm following this tutorial to add spring session (through redis) to my application. http://www.baeldung.com/spring-session I add the dependencies org.springframework.boot
AKrush95
  • 1,381
  • 6
  • 18
  • 35
7
votes
1 answer

Authentication should not be null in unit tests with spring-session

I have a spring boot (version 1.5.9.RELEASE) application which uses spring-session to store sessions on Redis. It also uses spring-security to authenticate users. When running the application, after a successful login, the security context contains…
7
votes
0 answers

How do you copy stomp websocket sessions to redis in spring when you are using REST API and JWT

I am building a small websocket project and secured by JWT token mechanism and I would like to store websocket sessions in redis not local memory. @Override protected void configureStompEndpoints(StompEndpointRegistry registry) { registry …
Inacio
  • 127
  • 12
7
votes
1 answer

Centralize session management to other Springboot applications

I have some applications with Spring Boot, Spring Security, Spring Sessions and Spring Redis. One of my applications (I will call it "Permissions") is responsible for providing a login service to all my other applications. This is already working…
7
votes
2 answers

Spring Security SAML with Spring session

I am using OpenAM as my IDP and my SP (an angular2 SPA) is based on the example shared at: https://github.com/vdenotaris/spring-boot-security-saml-sample After authentication, my webapp is supposed to invoke few REST services which are secured via…
Vin
  • 71
  • 1
  • 5
7
votes
3 answers

Spring Security maxSession doesn't work

I want to prevent login when user exceed maxSession count. For example every user can login once. And then if logged user try another login system should disable login for him.…
fatiherdem
  • 1,173
  • 6
  • 18
  • 35
7
votes
3 answers

Redis, SpringBoot and HttpSession: should I encrypt the session data?

I'm using Spring Boot 1.3.3 to build a web application. I use Redis for handling the session. I'll set some "crucial" data into the HttpSession and I'd like to understand how this will work with Redis. Is the information stored server side plus a…
mat_boy
  • 12,998
  • 22
  • 72
  • 116
7
votes
2 answers

How to get exclusive access to some session entry?

Due to remote invocation nature of REST services, they are in constant situation to run into race condition with each other. One of the everyday resources to race for is session. In order to be practical, you need to be able to put a lock over the…
Mehran
  • 15,593
  • 27
  • 122
  • 221
7
votes
4 answers

Spring session with redis - how to mock it in integration tests?

So, Im using spring session in my project. How to write integration tests in project using it? Should I mock something for spring session internals? Or any reasonable way to use embedded redis? I saw there was some @EnableEmbeddedRedis annotation…
hi_my_name_is
  • 4,894
  • 3
  • 34
  • 50
7
votes
2 answers

How to use Spring Session + Spring security xml configuration and multiply security filter

Background Hey all, We have Spring project which uses Spring security. We have defined the security filters by defining whith filter-chain-map and in…
oak
  • 2,898
  • 2
  • 32
  • 65
1
2
3
49 50