✍️
Web Application
  • Cookie
  • Intro
    • HTTP
  • Cookie
    • Counting Cookie
    • Shopping Cart Using Cookie
    • Shopping Cart Page:id
    • Shopping Cart Page
    • Cookie and Security
  • Session
    • Intro
    • Session and Cookie
    • Session with Express
    • Login function using session
    • How to store session data
    • store as file
    • store in mysql DB
    • Store Session in OrientDB
  • Security Password
    • salt
    • PBKDF2
    • Log in with encrypted password
    • PassportJS
    • Untitled
  • Federation Authentication
    • Intro
    • Facebook Authentication
    • FB Auth Summary
  • refactoring
    • template engine : pug extends, include
    • Modularity
    • Divide Router
Powered by GitBook
On this page

Was this helpful?

  1. Session

Store Session in OrientDB

connect-oriento npm 설치한다.

모듈을 실행시켜서 OrientDB에 'session'이라는 테이블(클래스)가 있는지 확인한다. (없으면 생성한다.) 새로운 sid(세션 id)를 발급해서 OrientDB에 저장한다.그리고 사용자의 웹 브라우저로 쿠키로 sid를 전송한다.

Previousstore in mysql DBNextsalt

Last updated 4 years ago

Was this helpful?