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;) N
      • Computer Science
        • Terminology and Concepts
        • Network
        • Operating System
        • Database
        • Data Structure
      • Frontend
        • Javascript Essentials
        • Perfomance Optimization
        • JS Patterns
        • Next.js
        • Flutter
      • Backend
        • Node.js
      • DevOps
        • Docker & Kubernetes
      • Coding Test N
        • LeetCode N
        • 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
  • 블로그 메뉴

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

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

  • 인기 글

  • 태그

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

  • 최근 글

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

티스토리툴바