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

Get security context from SessionDestroyedEvent in Spring Session

I am using Spring Session 1.0.1. I need to execute some logic when the user logs out, and I need to rely on the HTTP session being invalidated to cover the case where the user fails to explicitly log out. The standard Spring Security…
NTyler
  • 1,397
  • 1
  • 12
  • 20
0
votes
1 answer

How to use use `with(user(` when using Spring Session/Security in REST environment

Is it possible to pouplate a Test User with SecurityMockMvcRequestPostProcessors.user when using Spring Session with HeaderHttpSessionStrategy. I tried something like: mockMvc.perform( get(URL) …
Marcel Overdijk
  • 11,041
  • 17
  • 71
  • 110
0
votes
1 answer

Could not find default ScheduledExecutorService bean with Redis and Spring

I have just develop a configuration with Spring Session and Redis, everything work fine, but in my console logs, I got 2015-06-29 15:45:44,088 [main] DEBUG org.springframework.scheduling.annotation.ScheduledAnnotationBeanPostProcessor - Could…
nole
  • 1,422
  • 4
  • 20
  • 32
0
votes
1 answer

I am looking Spring Boot + Spring Social + Spring Session(Redis) example.Does anybody have link?

I am looking Spring Boot + Spring Social + Spring Session(Redis) example.Does anybody have link? Spring Boot 1.2.3-Release and latest social + Spring security
0
votes
1 answer

Spring - Call a Service method in JSTL

I'm using Spring Security to handle user authentication for my Spring MVC web app. I'm able to get the username from the Authentication object, but my username is the email address, and I want to be able to show the user's actual name in my header.…
0
votes
1 answer

Spring session expired token

I have started using spring session in my jersey rest api, is there a way we can renew the expired session token . I know that we are deleting the token as soon as it ttl is over but is there any way I can achieve this. Any help is highly…
gg_1234
  • 117
  • 1
  • 5
0
votes
1 answer

Can I let spring-session used a standalone redis?

I have built up a redis server, I want to know whether I can make spring-session use the existed redis server instead of embed its redis-server?
Hongyu Jiang
  • 41
  • 2
  • 8
0
votes
0 answers

Trying apply spring-session on the glashfish container

I developing one project using those techs: a) Container: Glashfish; b) Spring Security; c) Java Server Faces; d) MySQL. Used code: @WebListener public class HazelcastInitializer implements ServletContextListener { private HazelcastInstance…
0
votes
1 answer

Spring Security not reusing authentication data with Spring Session EnableRedisHttpSession

I was able to successfully run this configuration using the sample spring boot Groovy Maven implementation from https://github.com/dsyer/spring-security-angular/blob/master/vanilla/README.md. It is not working when the application code was…
Paul
  • 348
  • 2
  • 16
0
votes
2 answers

Get the current session with spring-session

Here's my question: I'm writing a platform which I will be giving to the customers to implement their projects with. So in my platform I have created a SessionService in which I have methods like getCurrentSession, getAttribute, setAttribute, etc.…
Petar Tahchiev
  • 4,336
  • 4
  • 35
  • 48
0
votes
1 answer

Will Spring Session persist Web Flow state?

I have a couple of wizards that seem like a good fit for Spring Web Flow, but Web Flow stores significant flow state server-side, and I'm not sure where. I'm using a rapid integration and deployment cycle, so durability across server restarts is a…
0
votes
1 answer

How to expire Hazelcast session

I'm using spring-session libs to persist the session on Hazelcast like : 1. @WebListener public class HazelcastInitializer implements ServletContextListener { private HazelcastInstance instance; @Override public void…
0
votes
1 answer

Data stored in Spring (HTTP) Session is not removed from Redis during destroy

i am doing a PoC with the newly released Spring Session component. This is backed-up by Redis repository, where both the Session and the objects/data stored in session are persisted to. Session got created in the application ran the "Keys *"…
yathirigan
  • 5,619
  • 22
  • 66
  • 104
0
votes
1 answer

Consuming secured webservice (Spring Session)

I've implemented my Application like shown in this Example http://spring.io/blog/2015/01/20/the-resource-server-angular-js-and-spring-security-part-iii There is a UiApplication(Port 8080) and two ResourceApplications (Port 8090 and 9000) The…
Yannic Bürgmann
  • 6,301
  • 5
  • 43
  • 77
0
votes
1 answer

Capture Spring Session Destroy Event without registering the HttpSessionEventPublisher Listener

I wanted to perform some clean-up activity during Spring Session destroy (logout and timeout) and tried following the solution provided at this thread but what made me curious is that, my application is a Spring Boot application and I didn't have…
yathirigan
  • 5,619
  • 22
  • 66
  • 104