📘 Learn PHP For Beginners - Sessions

Published: 28 May 2025
on channel: Gary Clarke
239
15

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.


On this page of the site you can watch the video online 📘 Learn PHP For Beginners - Sessions with a duration of hours minute second in good quality, which was uploaded by the user Gary Clarke 28 May 2025, share the link with friends and acquaintances, this video has already been watched 239 times on youtube and it was liked by 15 viewers. Enjoy your viewing!