Persisting Express sessions through MongoDB and mongo-connect


show more Persisting Express sessions through MongoDB and mongo-connect provides you with in-depth training on Developer. Taught by Joseph LeBlanc as part of the Node.js Essential Training (2013) show less
please wait ...

Persisting Express sessions through MongoDB and mongo-connect

For many web applications, establishing a session is a crucial way of identifying a user. Sessions make it possible for people to log into a website and not have to re-enter their password on every page. In this video we will add sessions for our application and use them to track a simple piece of data. First let's go to the exercise files. Go to chapter seven, video four. And then copy the start folder to the desktop. Now go to terminal and change directory to that start folder. I'm just going to drag it in to get the path.

And then finally type NPM install, and then press Return. Now in certain environments and frameworks, session storage is handled for you. Consequently, you can end up taking them for granted. When I first started writing express applications, I quickly discovered sessions are now my responsibility. Not only did I have to turn them on, I also had to figure out a way of storing them. While you can just let express store the session information in memory, there are some down sid...

Persisting Express sessions through MongoDB and mongo-connect
Video duration: 7m 6s 3h 17m Intermediate

Viewers:

Persisting Express sessions through MongoDB and mongo-connect provides you with in-depth training on Developer. Taught by Joseph LeBlanc as part of the Node.js Essential Training (2013)

Subject:
Developer
Software:
JavaScript Node.js
Author:
please wait ...