In this lesson, we explore sessions in PHP - a way to store data across multiple pages and keep track of user information between requests.
You’ll learn:
✅ How to start a session using session_start()
✅ How to store values in the $_SESSION superglobal
✅ How to access session data from another script
✅ Why sessions are useful for things like logins and user preferences
We’ll create two simple scripts: one that sets a session value, and one that retrieves it - so you can see how data persists across page loads.
This short, hands-on lesson gives you another quick win as you build up your PHP skills step by step.
---
This video is part of a free companion series to my book Learn PHP For Beginners — a beginner-friendly guide packed with real code, practical examples, and small projects.
Perfect for:
✔️ Self-taught devs
✔️ Students new to PHP
✔️ Web developers learning the language from the ground up
---
Grab the book and follow along:
👉 https://www.garyclarke.tech/p/learn-p...
Got questions or feedback? Leave a comment below!
Like, subscribe, and turn on notifications to catch the next lesson in the series.
Sur cette page du site, vous pouvez voir la vidéo en ligne 📘 Learn PHP For Beginners - Sessions durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Gary Clarke 28 mai 2025, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 239 fois et il a aimé 15 téléspectateurs. Bon visionnage!