Authentication Session

2021. 1. 23. 21:25·BootCamp_Codestates/Sprint Review

로그인 요청에, 데이터베이스에 해당 유저가 있으면 세션 객체에 유저 아이디를 저장하여 응답한다.

유저 정보를 요청하면, session 객체에 유저 아이디가 존재하는지 확인하고 있으면 해당 정보를 보내준다.

로그아웃 요청을 하면, session 객체 안에 userId 존재 확인하고, session 을 삭제한다.

특이사항
app.js 에서 express-session 모듈을 이용하여 쿠키를 설정해줄 수 있습니다.

'BootCamp_Codestates > Sprint Review' 카테고리의 다른 글

Authentication Token  (0) 2021.01.23
Authentication Cookie  (0) 2021.01.23
IM - data-structure  (0) 2020.12.18
'BootCamp_Codestates/Sprint Review' 카테고리의 다른 글
  • Authentication Token
  • Authentication Cookie
  • IM - data-structure
JTB
JTB
웹/앱 개발 정보를 공유하고 있습니다.
  • JTB
    JTechBlog
    JTB
  • 전체
    오늘
    어제
    • All About Programming;)
      • Other than Tech
        • 잡생각
      • Computer Science
        • Terminology and Concepts
        • Network
        • Operating System
        • Database
        • Data Structure
        • Web Development
      • Frontend
        • Javascript Essentials
        • Perfomance Optimization
        • JS Patterns
        • React
        • Next.js
        • Flutter
        • Testing
      • Backend
        • Node.js
      • DevOps
        • Docker & Kubernetes
      • Coding Test
        • LeetCode
        • Programmers
      • Tech Books & Lectures
        • Javascript_Modern JS Deep d..
        • Network_IT 엔지니어를 위한 네트워크 입문
      • Projects
        • PolyLingo_2025
        • Build Your Body_2024
        • JStargram_2021
        • Covid19 Tracker_2021
        • JPortfolio_2021
      • BootCamp_Codestates
        • TIL
        • TILookCloser
        • Pre Tech Blog
        • IM Tech Blog
        • Daily Issues and DeBugging
        • First Project
        • Final Project
        • Sprint Review
        • Good to Know
        • Socrative Review
        • HTML & CSS
  • 블로그 메뉴

    • 홈
    • 태그
    • 방명록
  • 링크

    • 글쓰기
    • 관리
  • 공지사항

  • 인기 글

  • 태그

    스코프
    Data Structure
    need a database
    CPU scheduling algorithm
    자바스크립트 딥다이브
    TCP/IP
    Threads and Multithreading
    프론트엔드 성능 최적화 가이드
    Javascript Essentials
    모던 자바스크립트 Deep Dive
    polylingo
    Shared resources
    VoiceJournal
    Network
    mobile app
    이벤트
    structure of os
    indie hacker
    딥다이브
    testing
    Binary Tree BFS
    자바스크립트
    database
    js pattern
    커리어
    leetcode
    DOM
    Time complexity and Space complexity
    Operating System
    How memory manage data
  • 최근 댓글

  • 최근 글

  • hELLO· Designed By정상우.v4.10.5
JTB
Authentication Session
상단으로

티스토리툴바