From 6093947d9085d9682bdb0ef302a0a8d4d92113fd Mon Sep 17 00:00:00 2001 From: peregr1nus Date: Fri, 12 Dec 2025 16:38:03 +0900 Subject: [PATCH] =?UTF-8?q?=EC=84=B8=EC=85=98=20=EC=9C=A0=EC=A7=80=20?= =?UTF-8?q?=EA=B0=9C=EC=84=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.py | 9 +++------ templates/complete.html | 1 + 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/app.py b/app.py index 6479663..7c986c6 100644 --- a/app.py +++ b/app.py @@ -66,8 +66,8 @@ def auth(): @app.route('/logout') def logout(): - """로그아웃""" - session.pop('authenticated', None) + """로그아웃 - 세션 전체 삭제""" + session.clear() return redirect(url_for('auth')) @app.route('/') @@ -241,10 +241,7 @@ def step5(): except Exception as e: logger.warning("로컬 파일 삭제 실패: %s", str(e)) - # 세션 삭제 (문서 생성 및 업로드 완료) - session.clear() - logger.info("세션 삭제 완료") - + # 세션은 complete 페이지에서 로그아웃 시 삭제 return jsonify({ 'success': True, 'message': '제출이 완료되었습니다. 구글 드라이브에 업로드되었습니다.', diff --git a/templates/complete.html b/templates/complete.html index 6cb6497..e63e2ef 100644 --- a/templates/complete.html +++ b/templates/complete.html @@ -9,6 +9,7 @@

담당 니고데모(상담사) 검토 후 연락드리겠습니다.

+