Skip to main content

All Questions

0 votes
0 answers
59 views

Using Hazelcast for session management in Spring Non Boot Application

I have one non boot spring application and i want to implement hazelcast-session for that. PFB the code snippet- pom.xml <dependency> <groupId>org.springframework.security</...
ankit's user avatar
  • 25
0 votes
0 answers
148 views

Spring boot: how to disable session handler for the embedded server?

Our application does not need any session support but Spring adds session handler and a session id managed to the embedded Jetty server. I tried removing the handler in the server customizer but then ...
Anonymous Person's user avatar
0 votes
1 answer
409 views

How to enable CookieCsrfTokenRepository.withHttpOnlyFalse() and @EnableJdbcHttpSession?

I have a Spring boot application with Spring Authorization Server (the new 4.0.1 package Spring Authorization) The server is in a cluster of servers thus it needs to save the session in a DB so I use @...
Assaf A's user avatar
2 votes
1 answer
991 views

Spring security - Specific session creation policy per matchers

I'm trying to implement SessionCreationPolicy.ALWAYS for the /testMVCController/** endpoint and SessionCreationPolicy.STATELESS for rest of endpoints (/**). Expected scenario: When accessing to /...
hugoalexandremf's user avatar
1 vote
1 answer
1k views

Start a session from a given id in spring

How can I create a session in a spring mvc application from a given ID instead of a generated one? I want to fixate the session. The fixation will be started by a trusted ui service. This trusted ...
Paul's user avatar
  • 53
0 votes
1 answer
513 views

Spring Session JDBC Problem adding in my project

currently I have a project with Spring MVC which already interact with Database(MariaDB) and I would like to try the spring-session-jdbc. I found the documentation in this spring-session , I do what ...
KostasC's user avatar
  • 1,096
2 votes
1 answer
3k views

How to forcefully end filter-chain in an early servlet/spring boot filter

Having a multi-tenancy application, I want to end any request without a tenant very early. Setup / Scenario I run spring boot (web) with spring session and spring security. In my case, I have several ...
Eugen Mayer's user avatar
  • 9,589
0 votes
0 answers
924 views

Spring Session with Redis and Spring Security

I'm having spring MVC application where the session management is done using redis and whenever I need to retrieve current logged in user I use Securitycontextholder.getcontext().getAuthentication(). ...
Sagar Pandit's user avatar
6 votes
0 answers
3k views

Maintain user's session (HttpSession) after login in Spring Boot application

I'm creating a simple hotel reservation web application in Spring. Currently, I'm building the actual implementation of booking functionality, employing HttpSession to store data between requests to ...
maciejd's user avatar
  • 183
1 vote
1 answer
341 views

HTTP POST from app.example.com to localhost: session cookie not sent

I have two Spring Web applications that work together. I'm running the first application from the IDE on localhost, while the second one is running in docker on app.127.0.0.1.nip.io. The two ...
stblassitude's user avatar
1 vote
0 answers
360 views

how to check session exist in spring_session table in spring session?

I have implemented Spring session in my spring MVC project and it is working fine. The configuration classes are follows. @Configuration @EnableJdbcHttpSession(maxInactiveIntervalInSeconds = 60) ...
Sulthan's user avatar
  • 354
1 vote
1 answer
2k views

How to change MaxInactiveIntervalInSeconds value in spring session java based configuration?

I have implemented spring session in spring MVC application. It is creating session tables in my database and storing the session ids. But i am not able to change the 'MaxInactiveIntervalInSeconds' ...
Sulthan's user avatar
  • 354
0 votes
1 answer
380 views

Spring Session JDBC - error using @Autowired Objects

In order to save the sessions in a Database, I have implemented the Spring Session JDBC using this example here. I am having problems using the @Autowired with session scope: I have Java Class Dump ...
jAdex's user avatar
  • 556
3 votes
0 answers
1k views

What is the default setting value of SessionCookieConfig in Spring Boot, and how does it be set?

I am trying to configure my custom DefaultCookieSerializer in spring-session, the only property that i want to set is sameSite, and i want all the other setting use the "default" value. So I read some ...
user8510613's user avatar
  • 1,262
2 votes
2 answers
3k views

How to make spring session persistent throughout multiple requests?

I'm developing a web application using Spring Boot and Angular (in the background I'm also using Spring Session, Security and Data Jpa). I've encountered a problem with the session. It seems like ...
Frank's user avatar
  • 112

15 30 50 per page
1
2 3 4 5