- HTTP is a stateless protocol. All request and responses are independent. The server cannot distinguish between new visitors and returning visitors.
- But sometimes we may need to keep track of clients activity activity across multiple requests. This is achieved using session management. It is a mechanism used by the web container to store information for a particular user.
- Sessions are needed to keep the track of clients activity across multiple requests.
- Session management can be done using following ways.
- Cookies
- Hidden from field
- URL rewriting
- HTTP session
- Spring session consist of following modules
- Spring Session Core
- Spring session data redis
- Spring session JDBC
- Spring session when configured using JDBC creates following tables and database.
- Spring session Hazelcast
- For storing session in database using JDBC, we use property
- Spring. Session. Store-type = jdbc
- By default, tomcat, stores, HTTP session objects in memory.
- Using spring session, JDBC we can store all the information in a data store.
- Specify following property in configuration
- spring.session.store–type = JDBC.
- Session are used to manage state between HTTP requests
- Session ID Is used and is stored in Cookie on client machine.
- From server side session is managed by server.
- Spring session, we place the HTTP session implementation by a custom implementation.
- Spring session creates a been called as sessionRepositoryFilter.
- Annotations
- Controllers
- Components
- Dependencies
- Documenting Java Code
- Entities
- Hibernate
- HTTPS Security
- Spring Core
- Maven
- Spring MVC
- Microservices
- Packages
- Project Configuration
- REST Templates
- Spring Boot
- AOP
- Spring DI
- Spring IOC
- Spring Data
- Tag Library
- View Resolvers
- Validations,Errors & Exceptions
- Activiti Framework
- Deploy spring boot Microservices in Fargate
- Spring Security
- Password encryption using Jasypt
- Flyway DB Migration Script
- Session in Spring Boot
- Spring Expression Language
- Spring JDBC
- Spring ORM
- Testing Spring Boot
- Correlation ID
- Logging
- ELK Stack
- EFK Stack
- Swagger
- Rabbit MQ
- Circuit Breaker Pattern
- Connection Pooling
- Spring Batch
- Zipkins
- Kafka
- Spring Boot Actuator
- Spring Cloud
- Caching
- Gateway
- Service Discovery
Session in Spring Boot
Subscribe to:
Posts (Atom)
Spring Boot
What is circular/cyclic dependency in spring boot? When two services are interdependent on each other, that is to start one service, we requ...
-
What is JPA? JPA Is also called as Java persistence API It is a standard form oracle to map object to database relations. Provides specific...
-
Technology's / frameworks in Spring Spring core Spring MVC Spring boot Spring data Hibernate
-
Q What is the minimal web version required to use JSTL? And : 2.4 For example following tag from web.xml uses web 4.0 <web-app xmlns:xs...
No comments:
Post a Comment