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 @@
담당 니고데모(상담사) 검토 후 연락드리겠습니다.