Skip to main content

All Questions

Tagged with
0 votes
0 answers
35 views

Service worker update session expire time

In my application I am storing session in database using Spring JDBC session. But as when Angular send ngsw request to server, it updating session expire time. So my session never expires. As there ...
Sunil Chaphekar's user avatar
1 vote
1 answer
888 views

What's the best way to access Session Data in Spring Boot?

What's the best way to access Session Data in Spring Boot? I'm developing a new microservice that included login/logout/2fa operation. Login will consist 3 or 4 steps, like -> /validateUser (1.Step)...
B. Ekrem Altın's user avatar
1 vote
1 answer
564 views

Spring Boot is ignoring application.properties session timeout value

I'm trying to get Spring Session timeout changed to a longer default value and also to have the cookie be persistent instead of session only. I'm using spring-session-jdbc for session storage. I've ...
Michael Conrad's user avatar
0 votes
1 answer
1k views

What is the replacement of EJB SessionContext object in spring boot?

I am migrating an EJB project to Spring boot project. I have successfully replaced other annotations to the spring annotation, but havving problem with SessionContext object. My legacy code is bellow @...
mahfuj asif's user avatar
  • 1,881
0 votes
1 answer
536 views

Spring Security using JDBC Sessions sharing same session across multiple web applications

I'm currently using JDBC sessions across multiple applications, configured with Spring security. What I need is for all sessions of a same user to use the same session across all applications. For ...
TheTheodorus's user avatar
1 vote
1 answer
1k views

How do I initialize one object for multiple requests using spring session?

I have an application that requires three pieces of data. Example: public class RequestForm { private final String a; private final String b; private final String c; } I would like to get ...
Hoon's user avatar
  • 11
0 votes
0 answers
40 views

Is there another logic that handles the session in Chrome?

I use Spring, log in using Session. Login processing works well in other browsers (IE, Safari.....), Even on mobile chrome! Only Desktop Chrome says there is no session value. When the Interceptor ...
Sangmin Kim's user avatar
2 votes
0 answers
850 views

Session-id in RestController

In my RestController I'm using RequestContextHolder.getRequestAttributes().getSessionId() to get the session id. For differet requests (separate endpoints) from the same browser, the session id ...
Lavish Kothari's user avatar
3 votes
1 answer
1k views

Spring Session Cookie shows wrong value

I am looking into spring sessions, going through docs i was able to create table and persist my session there, and as i can see spring adds SESSION cookie but it's value is totally different from ...
Taras Fityo's user avatar
2 votes
1 answer
657 views

Can't use spring sessions on Vaadin

If i add spring-session jdbc to my vaadin-spring-boot-application the application is very slow and does a full page reload after a few seconds. Everything else looks like it is working normally. I do ...
Nadimibox's user avatar
  • 1,444
2 votes
1 answer
3k views

Refresh expiration of cookie of session in spring boot

I am solving problem with cookie expiration which holds information about session with given user. I tried this solution: refresh cookie on each request in spring but condition cookie.getValue()....
Denis Stephanov's user avatar
1 vote
2 answers
1k views

How to set absolute session timeout for a Spring Session

As per OWASP sesssion's must have an absolute timeout which defines the maximum amount of time a session can be active. I know how to set the max inactivity timeout for a spring session using server....
Saurabh Gour's user avatar
3 votes
2 answers
2k views

Spring Security - Public pages redirected to login with invalid session id

I came across an Issue where public urls won't work in Spring security, when you already have an SessionID which is not valid anymore. Example: I have the user-register page and gave it a permitAll ...
Sunchezz's user avatar
  • 748
2 votes
0 answers
97 views

Spring session issue in Micro-service

I am trying to handle session in microservice application using spring session and I am storing session in mysql database. here is my pom.xml <dependency> <groupId>org....
Pavan's user avatar
  • 153
0 votes
0 answers
243 views

Spring session generates session even though I am not authorized

I have created an application which uses spring session. When I make a call to api which needs to be authenticated I am getting an error, which is fine but also application generates a session id. Is ...
Jan Testowy's user avatar

15 30 50 per page