Uploaded November 2022 | Updated November 2026, 1 day ago
In this video we refactor the sessions & implement a simple session class.
SOME OF THE WAYS YOU CAN SUPPORT THE CHANNEL
π Smash the like button
π€ Subscribe to the channel & turn the notifications on
π¬ Post comments, any feedback is greatly appreciated
β Become a Patreon: patreon.com/programwithgio
THANK YOU!
π οΈ TOOLS & SERVICES I USE
Digital Ocean Hosting - Get 100$ credit - https://m.do.co/c/38b935ad74e5
Domains on Namecheap - namecheap.pxf.io/rnRjdQ
Envato Elements - https://1.envato.market/c/2937311/298927/4662
LESSON P.7
Starting Source Code - github.com/ggelashvili/expennies/tree/P7_Start
Ending Source Code - github.com/ggelashvili/expennies/tree/P7_End
Course Outline - github.com/ggelashvili/learnphptherightway-outline
Course Playlist - youtube.com/playlist?list=PLr3d3QYzkw2xabQRUpcZ_IBk9W50M9pe-
RESOURCES
DTO Lesson - youtu.be/35QmeoPLPOQ
TABLE OF CONTENTS
00:00 - Intro
00:19 - Refactor to use session interface
07:10 - Refactor options array to DTO
08:37 - Set session name & test it out
10:06 - Refactor Auth class
14:52 - Refactor AuthMiddleware, AuthenticateMiddleware & GuestMiddleware classes
17:36 - Outro
** Affiliate Disclaimer: Some of the above links may be affiliate links, which may generate me a sales commission at no additional cost to you.
In this video we refactor the sessions & implement a simple session class.
SOME OF THE WAYS YOU CAN SUPPORT THE CHANNEL
π Smash the like button
π€ Subscribe to the channel & turn the notifications on
π¬ Post comments, any feedback is greatly appreciated
β Become a Patreon: patreon.com/programwithgio
THANK YOU!
π οΈ TOOLS & SERVICES I USE
Digital Ocean Hosting - Get 100$ credit - https://m.do.co/c/38b935ad74e5
Domains on Namecheap - namecheap.pxf.io/rnRjdQ
Envato Elements - https://1.envato.market/c/2937311/298927/4662
LESSON P.7
Starting Source Code - github.com/ggelashvili/expennies/tree/P7_Start
Ending Source Code - github.com/ggelashvili/expennies/tree/P7_End
Course Outline - github.com/ggelashvili/learnphptherightway-outline
Course Playlist - youtube.com/playlist?list=PLr3d3QYzkw2xabQRUpcZ_IBk9W50M9pe-
RESOURCES
DTO Lesson - youtu.be/35QmeoPLPOQ
TABLE OF CONTENTS
00:00 - Intro
00:19 - Refactor to use session interface
07:10 - Refactor options array to DTO
08:37 - Set session name & test it out
10:06 - Refactor Auth class
14:52 - Refactor AuthMiddleware, AuthenticateMiddleware & GuestMiddleware classes
17:36 - Outro
** Affiliate Disclaimer: Some of the above links may be affiliate links, which may generate me a sales commission at no additional cost to you.










