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.
En esta página del sitio puede ver el video en línea 📘 Learn PHP For Beginners - Sessions de Duración hora minuto segunda en buena calidad , que subió el usuario Gary Clarke 28 mayo 2025, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 239 veces y le gustó 15 a los espectadores. Disfruta viendo!