Session Stores and Restricting Page Access | Node Auth Tut - Part 6
Chris Courses
🚀View more development courses and content at https://chriscourses.com/
🖥Professional Web Development Services from Chris: https://resovere.com/
Session storage is a must when going about development for a user based app. Since sessions determine whether or not a user should stay logged in after registering or logging in for the first time, it's important that we monitor these sessions in a place where they won't get deleted if our Node process restarts or terminates. As a result, we make use of something called a session store which will move your session's from being stored on your node process to being stored within your app's database.
Learn how to integrate session stores and restrict access to particular pages when a user is logged in or logged out.
Restrict Page Access Middleware:
https://gist.github.com/christopher4lis/f7121a07740e5dbca860c9beb2910565
Video Timeline:
0:00 - Implementing a Session Store with MySQL and express-session 5:56 - Restricting User Access to Certain Pages Unless Logged In
The Platform:
http://chriscourses.com is a platform in progress whose goal is to educate aspiring and seasoned web developers via story driven learning.
Each course tells a different story, and each milestone reveals a different scene. With an expansive universe to explore, you can track your progress, and gain the necessary skills needed to build your dreams.
For updates on the progress of chriscourses.com and future videos, join the Chris Courses mailing list at http://chriscourses.com.
Support Chris Courses Through Patreon:
https://www.patreon.com/chriscourses
Chris Courses Social:
Twitter: https://twitter.com/chriscourses Facebook: https://www.facebook.com/chriscourses Instagram: https://www.instagram.com/chriscourses
Christopher Lis Social:
Twitter: https://twitter.com/christopher4lis CodePen: http://codepen.io/christopher4lis ... https://www.youtube.com/watch?v=gTowbsNPp9I
39256987 Bytes