Skip to content

PRO TIP Block youtube.com at the DNS level — Pi-hole, NextDNS or your hosts file — but allow youtube-nocookie.com and i.ytimg.com. These tutorials keep playing; the rabbit hole does not.

Learning without distractions

26 | Session Security Basics in PHP for Beginners | 2023 | Learn PHP Full Course For Beginners

48.6K views on YouTube

In this PHP tutorial I will teach you about sessions security basics in PHP, and how we can make our sessions safer on our website. 🙂 I will show you how to change your ini settings, your cookie parameters, and regenerate your session ID.

➤ TIMESTAMPS

00:00:00 – What is session security?
00:03:01 – Session security basics
00:04:41 – What is a php.ini file?
00:05:30 – session.use_only_cookies()
00:07:22 – session.use_strict_mode()
00:08:19 – Changing our cookie parameters
00:11:07 – Starting our session
00:11:25 – session_regenerate_id()
00:12:14 – Regenerate your ID periodically
00:14:54 – Final thoughts on session security

➤ GET ACCESS TO MY LESSON MATERIAL HERE!

First of all, thank you for all the support you have given me!

I am really glad to have such an awesome community on my channel. It motivates me to continue creating and uploading content! So thank you!

I am now using Patreon and YouTube Memberships to share improved and updated lesson material, and for a small fee you can access all the material either from my memberships or Patreon, depending on your preference. I have worked hard, and done my best to help you understand what I teach.

I hope you will find it helpful 🙂

Memberships: https://www.youtube.com/channel/UCzyuZJ8zZ-Lhfnz41DG5qLw/join
Patreon: https://www.patreon.com/mmtuts