| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | |||||
| 3 | 4 | 5 | 6 | 7 | 8 | 9 |
| 10 | 11 | 12 | 13 | 14 | 15 | 16 |
| 17 | 18 | 19 | 20 | 21 | 22 | 23 |
| 24 | 25 | 26 | 27 | 28 | 29 | 30 |
| 31 |
Tags
- Session Fixation Protection
- ConcurrentSessionControlAuthenticationStrategy
- Spring
- 백준
- RestControllerAdvice
- 프로그래머스
- Java
- Value annotation
- tailsamplingprocessor
- 12100
- 자바
- github actions
- aws-mysql-jdbc
- RequiredArgsConstructor
- SpringCloudConfig
- 15686
- Spring Authorization Server
- 14891
- 1916
- github
- self-hosted runners
- Session Registry
- amazon-ecr-login
- Spring Security
- 14889
- openTelemetry
- 17144
- 1260
- AWS
- HttpRequestMethodNotSupportedException
Archives
- Today
- Total
한울이
[SPRING] Session 본문
1. Servlet session
1-1. session 이 없을 때
RequestFacade.java

Connector.java/Request



ManagerBase.java

1-2. session 있을 때
Connect.java/Request

2. Spring session with redis
2-1. session 없을 때
SpringHttpSessionConfiguration.java
- SessionRepositoryFilter 등록

SessionRepositoryFilter.java
SessionRepositryRequsetWrapper 생성




RedisIndexedSessionRepository.java

SessionRepositoryFilter.java (이 부분은 session 있을 때 / 없을 때 둘다 적용 - 세션 저장)

SessionRepositoryFilter.java/SessionRepositryRequestWrapper

RedisIndexedSessionRepository.java



2-2. session 있을 때
SessionRepositoryFilter.java

RedisIndexedSessionRepository.java

RedisSessionMapper.java (시간 증가)

'PROGRAMMING' 카테고리의 다른 글
| [SPRING] Spring Authorization Server Default Session Registry (0) | 2023.07.31 |
|---|---|
| [SPRING] ConcurrentSessionControlAuthenticationStrategy session expire 실패 (0) | 2023.03.26 |
| [SPRING] k8s cronjob + Spring Batch (0) | 2022.08.21 |
| [SPRING] Lombok @RequiredArgsConstructor @Qualifier (0) | 2022.08.21 |
| [SPRING] @RestControllerAdvice can not handle HttpRequestMethodNotSupportedException (0) | 2022.08.21 |
Comments