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
4
votes
2 answers

How to remove existing sessions by specific principal name

I'm using Spring Session 1.3.0 with Redis backend in my project. I have an use case that the super admin might update the roles of existing user who might already logged in. I want to delete the existing session records for those users after…
Kane
  • 8,035
  • 7
  • 46
  • 75
4
votes
0 answers

spring security oauth + spring session ,author service error occurs when client logs in

using spring oauth + spring session of spring security to do service certification, but when ui jumps to author service certification error occurs,the error message is below, please tell me how to solve…
sis31
  • 41
  • 1
4
votes
2 answers

NGINX do not pass response header

I have a java spring application running on port 8080, this app should return a header 'x-auth-token', this app run behind nginx reverse proxy. The application correctly produce the header, When i request directly to it (bypassing…
Joseph
  • 3,085
  • 3
  • 23
  • 33
4
votes
1 answer

Persist Spring Session without Spring Security

I am seeking assistance in configuring Spring Boot to persist a Spring Session without using Spring Security. I started with the HttpSession JDBC Spring Boot sample app, to persist a Spring Session for a Spring Boot app. However this uses Spring…
Ted
  • 119
  • 1
  • 9
4
votes
1 answer

Is Redis capable of using hard disk when it runs out of memory?

Redis is the default implementation for Java's Spring session storage. But Redis is an in-memory value-key storage and sooner or later it will run out of memory. And once it does, it will do one of the following: Throws an error for commands…
Mehran
  • 15,593
  • 27
  • 122
  • 221
4
votes
2 answers

Can multiple Spring sessions be backed by same redis instance?

We have a couple of web applications written on Java Spring, we are using spring-data-redis and @EnableRedisHttpSession. I was wondering what are the spring session internals. Would it check redis database for duplicate session keys before creating…
Juzer Ali
  • 4,109
  • 3
  • 35
  • 62
4
votes
1 answer

Redis Session Serializer mismatch between 3.2 and 4.2

I have a Spring Cloud-based application running on multiple spring-boot servers. All servers share the same Spring Session using @EnableRedisHttpSession. I now want to integrate a third party widget into my application. Working with the third party,…
odedia
  • 931
  • 2
  • 11
  • 27
4
votes
0 answers

Redis instance swap usage continues to grow

I have an AWS Elasticache Redis instance that I'm using as a backing for Spring Session. Looking at the console most of the metrics seem to be ok, but I'm concerned that the swap usage is growing like there's some sort of memory leak. I'm new to…
Tyler B
  • 308
  • 2
  • 9
4
votes
2 answers

Spring Security Preauthorization Filter On Zuul To Establish and Share Session

I'm on a dev team working on a large scale project that uses Spring-based microservices. We've recently discovered the Spring Cloud project and are experimenting with implementing the Netflix services, Zuul, Eureka, Ribbon, etc. In our environment,…
Bal
  • 2,027
  • 4
  • 25
  • 51
4
votes
1 answer

How does the session scope of a bean work in a Spring MVC application?

I am pretty new in Spring MVC and I have a doubt about the session scope of a bean. Into a project I have a Cart bean, this one: @Component @Scope(value=WebApplicationContext.SCOPE_SESSION, proxyMode = ScopedProxyMode.TARGET_CLASS) public class Cart…
user4296472
4
votes
2 answers

How to config spring-session to support HeaderHttpSessionStrategy and CookieHttpSessionStrategy in one application?

I have a project want to support android,ios,pc web. I try to use https://github.com/spring-projects/spring-session, can it be just config in an application to support HttpSession and rest token? if it can,how i can config it?
kalman
  • 41
  • 1
  • 5
4
votes
1 answer

Spring Boot + OAuth2 + Google Login - How to implement logout

I have a Auth Server implementation with Spring Boot + OAuth2 + Login through Google. And a resource server for my backend data services. I have used JDBC token store. Everything works great. But I am having difficulty in understanding logout…
4
votes
0 answers

Embedded Redis tries to connect to real Redis server, resulting in an exception

I am trying to use embedded redis for my dev spring profile (I also have a cloud profile that connects to a real redis). However, it seems that my embedded redis configuration tries to connect to the real redis. Here is the error I get when I run…
balteo
  • 23,602
  • 63
  • 219
  • 412
4
votes
1 answer

spring boot enable redis http session

I'm trying to use spring boots redis to store the sessions in it. When I follow their documentation, I always get an Exception when launching the server. What I've done so far: - I followed the documentation (click) added the needed dependency and…
peEtric
  • 51
  • 1
  • 2
  • 7
4
votes
1 answer

Runtime error while running a Spring Session + Spring Boot application

I am trying to run this Spring Session example available here but, I've used Maven instead of Gradle. I get the following error both while a) Running the WAR file and b) Deploying the WAR in an WildFly8.2 server A quick search suggests that the…
yathirigan
  • 5,619
  • 22
  • 66
  • 104