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.
In questa pagina del sito puoi guardare il video online 📘 Learn PHP For Beginners - Sessions della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Gary Clarke 28 maggio 2025, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 239 volte e gli è piaciuto 15 spettatori. Buona visione!