An open API service indexing awesome lists of open source software.

https://github.com/survi218/express-cookies-sessions

Using Express cookies and sessions to track authenticated users example
https://github.com/survi218/express-cookies-sessions

cookie-parser cookies express-js express-middleware express-session nodejs nodejs-modules session-cookie session-store sessions

Last synced: 7 months ago
JSON representation

Using Express cookies and sessions to track authenticated users example

Awesome Lists containing this project

README

          

# express-cookies-sessions
* Using of cookies for authentication. The server will send a signed cookie to the client upon successful authentication, and expects the client to include the cookie with every subsequent request.
- Set up your Express application to send signed cookies.
- Set up your Express application to parse the cookies in the header of the incoming request messages
# Using cookie-parser
- Install the cookie-parser Express middleware in your basic-auth folder by typing the following at the prompt:
````
npm install cookie-parser --save
````
* Using Express sessions to track authenticated users so as to enable authenticated access to server resources.
- Set up your Express server to use Express sessions to track authenticated users
- Enable clients to access secure resources on the server after authentication.
# Installing express-session
- Install express-session and session-file-store Node modules as follows:
````
npm install express-session session-file-store --save
````