Advertisement
Guest User

Untitled

a guest
Dec 22nd, 2014
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. Only a piece of cookie (as a string of char) is stored on client.
  2. Everything else will be stored on Server.
  3. Therefore, every time a client send its cookie (passport) to server, server will retrieve
  4. corresponding data (session).
  5. This data can be stored on RAM or pesisted (Redis).
  6.  
  7. Ex:
  8.  
  9. req.session.uid
  10.  
  11. (Server will use the code sent by client (cookies string) to get corresponding
  12. session on stored on the Server)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement