This video will be available to
subscribers on Tue, Dec 2, 2025.
subscribers on Tue, Dec 2, 2025.
You must be a subscriber to view this video.
Dec 2, 2025
19m:45s
Sessions
Classification
Software Engineering | Languages | JavaScript | Node
Keywords
javascript | node
About This Episode:
Your Node.js server just got smarter ๐ง โก๏ธ
HTTP is stateless โ but your apps donโt have to be.
In this episode, youโll learn how to manage sessions to persist user data between requests, handle flash messages, and clean up session files automatically โ all without a framework.
๐ In this episode, youโll learn how to:
๐ Understand the difference between cookies and sessions
๐๏ธ Build a simple, file-based SessionManager from scratch
๐พ Store and retrieve session data safely on the server
โ๏ธ Add flash messages and automatic session cleanup
๐งฉ Use JavaScript Proxy objects to auto-save session data
By the end, your Node.js apps will remember โ even when HTTP forgets ๐
๐ก Relevant Links
Previous TekCasts series:
- JavaScript for Beginners: https://tekcasts.com/play/javascript-for-beginners-what-is-javascript
- JavaScript in the Browser: https://tekcasts.com/play/javascript-in-the-browser-browser-runtime-environment
Libraries & Docs mentioned:
- Node.js fs: https://nodejs.org/api/fs.html
- Node.js path: https://nodejs.org/api/path.html
- Node.js http: https://nodejs.org/api/http.html
- MDN Proxy: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy
HTTP is stateless โ but your apps donโt have to be.
In this episode, youโll learn how to manage sessions to persist user data between requests, handle flash messages, and clean up session files automatically โ all without a framework.
๐ In this episode, youโll learn how to:
๐ Understand the difference between cookies and sessions
๐๏ธ Build a simple, file-based SessionManager from scratch
๐พ Store and retrieve session data safely on the server
โ๏ธ Add flash messages and automatic session cleanup
๐งฉ Use JavaScript Proxy objects to auto-save session data
By the end, your Node.js apps will remember โ even when HTTP forgets ๐
๐ก Relevant Links
Previous TekCasts series:
- JavaScript for Beginners: https://tekcasts.com/play/javascript-for-beginners-what-is-javascript
- JavaScript in the Browser: https://tekcasts.com/play/javascript-in-the-browser-browser-runtime-environment
Libraries & Docs mentioned:
- Node.js fs: https://nodejs.org/api/fs.html
- Node.js path: https://nodejs.org/api/path.html
- Node.js http: https://nodejs.org/api/http.html
- MDN Proxy: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy
Short Bio:
Bob Cravens is a seasoned technology leader, software architect, and educator with a passion for empowering others through practical, real-world knowledge. As the founder of TekFoundry, Bob has dedicated his career to designing and delivering innovative software solutions that combine cutting-edge technology with elegant simplicity.
At TekCasts, Bob leverages over two decades of experience in software engineering, application architecture, and team leadership to create engaging, high-impact courses for developers and technology professionals. His instructional style is rooted in practical application, offering insights drawn from his extensive background in industries like medical devices and global technology consulting.
Bobโs expertise spans a variety of technologies and methodologies, including PHP/Laravel, FastAPI, and DevOps, as well as architecture best practices and team dynamics. Whether teaching foundational concepts or advanced strategies, heโs passionate about helping others turn complex challenges into streamlined solutions.
When not crafting elegant code or inspiring the next generation of tech innovators, Bob enjoys exploring the intersection of technology, business strategy, and creative problem-solving.
At TekCasts, Bob leverages over two decades of experience in software engineering, application architecture, and team leadership to create engaging, high-impact courses for developers and technology professionals. His instructional style is rooted in practical application, offering insights drawn from his extensive background in industries like medical devices and global technology consulting.
Bobโs expertise spans a variety of technologies and methodologies, including PHP/Laravel, FastAPI, and DevOps, as well as architecture best practices and team dynamics. Whether teaching foundational concepts or advanced strategies, heโs passionate about helping others turn complex challenges into streamlined solutions.
When not crafting elegant code or inspiring the next generation of tech innovators, Bob enjoys exploring the intersection of technology, business strategy, and creative problem-solving.