▶ Logout 로그아웃
Session을 Delete하는 과정
▶ logout(request)
현재 요청에 대한 Session Data를 DB에서 삭제한다
클라이언트 쿠키에서도 Session Id를 삭제해야한다.
▶ 로그아웃 로직 작성
![]() |
![]() |
![]() |
▶ 로그아웃 진행 및 세션 데이터 삭제 확인
'WEB > Django concept' 카테고리의 다른 글
[Django][Authentication System1] Template에서 인증 관련 데이터 출력하기 (0) | 2024.04.20 |
---|---|
[Django][Authentication System1] 로그인 == 세션을 만드는 과정 (0) | 2024.04.20 |
[Django][Authentication System1] 인증 시스템, User Model 대체하기 (0) | 2024.04.20 |
[Django][Authentication System1] Cookie & Session (0) | 2024.04.20 |
[Django][Static Files] Media files (0) | 2024.04.20 |