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.
Nesta página do site você pode assistir ao vídeo on-line 📘 Learn PHP For Beginners - Sessions duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Gary Clarke 28 Maio 2025, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 239 vezes e gostou 15 espectadores. Boa visualização!