How can you handle concurrent session control in a Spring Security application?
- Configure the concurrency-control element in XML config.
- Use the @EnableConcurrentSession annotation.
- Set session.concurrency property in application.properties.
- Implement a custom ConcurrentSessionControlStrategy.
Concurrent session control in Spring Security is handled by using the @EnableConcurrentSession annotation along with configuring maxSessions. Options 1, 3, and 4 are not the standard approaches for handling concurrent sessions in Spring Security.
Loading...
Related Quiz
- For creating a Spring Boot project, the _____ website provides a user-friendly interface to generate project structure with desired configurations.
- In Spring Boot, how do you handle conflicts between properties defined in the application properties file and environment variables?
- For a class to serve as a Custom Validator in Spring Boot, it must implement the _____ interface.
- Which Spring Boot property is used to define the URL of the database?
- In Spring Boot, when testing service layer components, the _____ annotation can be used to avoid loading the complete ApplicationContext.