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
-1
votes
1 answer

Does spring-session saves bean with HttpSession?

I'm implementing spring-session inside my JEE project with Redis. The HttpSession is being saved and updated on my Redis server and I'm able to use it in case of a node failover. The thing is, my session scoped beans are not getting saved with the…
trulley
  • 9
  • 2
-1
votes
1 answer

What is messagingTemplate used for in SpringBoot websocket?

I have been trying to grasp fully the concept of WebSocket and i stumbled messagingTemplate.convertAndSendToUser(); and messagingTemplate.convertAndSend() please what is this class and how can it be used ?
appzone_oto
  • 333
  • 1
  • 4
  • 16
-1
votes
1 answer

separate oauth2 and web server

Suppose my site is example.com When a user at a client.com wants to login via example.com (with oauth2) He comes to oauth.example.com/authorize and oauth.example.com knows he's not signed in to web.example.com . oauth.example.com redirects him to…
eugene
  • 39,839
  • 68
  • 255
  • 489
-1
votes
1 answer

Using Redis with any Java IDE on a Windows system

I have been finding it hard to configure spring session in spring boot. I have seen a lot of implementation using Redis and using gem-fire and H2 JDBC has not resulted in anything productive. Can I use Redis with IntelliJ on my Windows system,…
Eshiett Oto-obong
  • 410
  • 1
  • 3
  • 14
-1
votes
1 answer

how to share User Principal/ securityContext on Public pages with permitAll() in spring security OAuth2

We have developed a SSO application in spring boot using OAuth [LDAP/ Social Login]. Application has some public pages and some protected pages. The requirement is we want some contents on public pages based on authenticated users. The issue is once…
-1
votes
1 answer

Spring Security with Spring Session: how to forbid updating of session last access time for particular requests

The thing I want to do is to exclude requests on /my-path from any checks by Spring Security. The problem is that I have a path /my-path. And requests for this path should not update the last access time in Spring Session. The way the request…
jahra
  • 1,173
  • 1
  • 16
  • 41
-1
votes
1 answer

spring session with jdbc simultaneously update session tables

connection(id :358250360) was acquired 14:11:55,420 and released at 14:11:55,471 which covered 51 ms and during this 51 ms spring session did 7 update operations. This is caused only by accessing a URL. if lots of users are online at the same time,…
Alvin
  • 12
  • 1
-1
votes
1 answer

I am working on a login framework in Spring MVC. I am doing it without session

Can anyone explain me how to use a session object in spring, for example a session has to be started when a user logged in and should be destroyed if the same user logs out. Below is my code without sessions. MainController: …
Bobby
  • 35
  • 1
  • 2
  • 12
-1
votes
2 answers

Session in Spring REST using Spring boot

How Can I create session in Spring REST, Using Spring boot? I have ready application with REST APIs, now I just need to apply session in it. I have seen two ways for Spring REST and Spring Boot…
Sanjay Rabari
  • 2,091
  • 1
  • 17
  • 32
-1
votes
1 answer

Can I use Spring-session to my old non-spring project

I already have old JSP project, but I want to take advantage of spring-session in particularly for SSO. I don't want to convert my old project to completely 'spring' version, because need so much effort to my team. It's not hard to configure using…
prptn
  • 299
  • 1
  • 6
  • 18
-2
votes
1 answer

Spring Session + Redis + JSF

I'm currently working on a project where I need to externalize the HTTP Session and other objects (Such as JSF state, Controllers, etc). My Project is in full JEE using JSF on the web tier (plus PrimeFaces and some other libs). Running on Payara…
trulley
  • 9
  • 2
-3
votes
1 answer

JSESSIONID or X-AUTH-TOKEN duplicates while authenticating the same user in Spring boot

My team has been using springboot + redis for securing microservices, by storing the spring-security session in Redis instance allowing single session per user(means a user can login only once at a time, if the user login two times simultaneously,…
Subin Chalil
  • 3,531
  • 2
  • 24
  • 38
-3
votes
2 answers

Spring Security 3.2.5 - Concurrency Login

After many days of research I gave up and my only hope is that here I could find my help. I have my application that the login part is manually using Spring 4 with Spring Security 3.2.5. Now I need to control the login concurrency, but doesn't…
Coto
  • 5
  • 4
1 2 3
49
50