Skip to main content

Questions tagged [spring-session]

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

spring-session
22 votes
2 answers
53k views

What is the default session timeout and how to configure it when using the Spring Session with Redis as the backend?

My application currently use Spring Session together with Redis as the backend. I searched into the official documentation for Spring Session but was not able to find what the default session timeout ...
balteo's user avatar
  • 24.3k
18 votes
4 answers
12k views

Is it possible to use Spring Boot session without Redis?

Looking at the Spring Boot docs I only found examples to use session with Redis, Is it possible to use it without Redis?
Fabio's user avatar
  • 225
17 votes
5 answers
33k views

Error with cookie-value when adding a new Spring Session

In my Spring Boot 1.4 based application I use Spring Session to store session data in the database with JDBC. This works fine with the default session. But when I want to add a new session (by adding ...
yglodt's user avatar
  • 14.4k
12 votes
5 answers
16k views

@EnableRedisHttpSession + Spring Boot ignoring server.session.timeout on application.yml

I have a project with Spring Boot 1.3.3 [another stuff] and Redis configurated to manage sessions, i.e., @EnableRedisHttpSession. The application works well and stores the information on Redis ...
Fernando Barbeiro's user avatar
12 votes
1 answer
7k views

Using SpringSessionBackedSessionRegistry with Redis Session Repository

I am using Spring Security and Spring Session (v1.3.1) in my application. I would like to use SpringSessionBackedSessionRegistry as my Session Registry and Redis as my Session repository. The ...
Brandon E Taylor's user avatar
11 votes
1 answer
15k views

How to use Spring Boot authentication with Redis session

I'm trying to learn Spring Boot by writing a simple REST application that would log users in (POST /login) and display info about current user (GET /). I'm using Redis for sessions. POST /login ...
Dmitri Maltsev's user avatar
11 votes
1 answer
7k views

Why does Spring Security 6 not create sessions when authenticating with curl and basic auth?

I recently upgraded to Spring Security 6, and have found that authenticating using basic auth from JS or from curl no longer works but authenticating with basic auth using Java's HttpClient does work. ...
Jason's user avatar
  • 7,526
11 votes
2 answers
7k views

Spring Session Data Redis - Get Valid Sessions, Current User from Redis Store

My question is, in distributed web application is it possible to get the valid sessions from Redis Store using RedisOperationSessionRepository. (I mean I don't want to write explicit code for putting ...
Shrikant Havale's user avatar
10 votes
3 answers
18k views

Spring-Session with JDBC configuration: Table 'test.spring_session' doesn't exist

I try to run this example but without using Redis, instead with my local MySQL server. I have edited this spring boot app like this: Gradle: buildscript { repositories { mavenCentral() ...
Tomasz Mularczyk's user avatar
10 votes
3 answers
11k views

Spring Zuul API Gateway with Spring Session / Redis Authenticate and Route in same Request

I have been really been searching high and low for the last few days on how to do this and have finally decided to admit defeat and ask for help, please!!! I have followed Dr Dave Syer's tutorial on ...
Justin Taylor's user avatar
10 votes
1 answer
2k views

Migrate user sessions from HttpSession to Spring redis session (Spring MVC app)

Recently we started using spring redis session as our session manager. We already have our application running in production for the last 8-10 months. There is a mobile app which uses this backend. ...
Bijesh CHandran's user avatar
9 votes
2 answers
8k views

Spring Session and Spring Security

I have questions on the following areas: spring-session and spring-security. Spring Session I have a application protected with Spring Security through basic in-memory authentication as provided in ...
gg_1234's user avatar
  • 117
9 votes
3 answers
6k views

OAuth2ClientContext (spring-security-oauth2) not persisted in Redis when using spring-session and spring-cloud-security

Thanks a lot in advance for reading this question. Setup I am using: spring-security-oauth2:2.0.7.RELEASE spring-cloud-security:1.0.1.RELEASE spring-session:1.0.1.RELEASE and would have a question ...
Jérémie's user avatar
  • 557
9 votes
1 answer
6k views

Expand Timeout using Spring Session (JDBC) on Spring Boot

I'm using Spring Boot and Spring Session to control an application that uses ReactJS as frontend. My problem is simple and I tried several ways to deal with without success. The React portion uses ...
Pablo Thiele's user avatar
8 votes
1 answer
8k views

Spring session with in memory store

Why does not spring.session.store-type has in memory option. ? Is there any way to use spring session with in memory option without writing my implementation of store ? I would like to use spring ...
user1321466's user avatar
  • 1,929

15 30 50 per page
1
2 3 4 5
51