PHP Front To Back [Part 17] - Cookies Tutorial

preview_player
Показать описание
Sessions are recommended over cookies in most situations but it is good to understand how cookies work as well. In this video we will be using the setcookie() function to create cookies in PHP. We will also look at serializing data with serialize() and unserialize()

CODE: Code for this video

BROWSER EXTENSION: Momentum

EDUONIX COURSES: Please use affiliate links from website below

SUPPORT: We spend massive amounts of time creating these free videos, please donate to show your support:

FOLLOW TRAVERSY MEDIA:
Рекомендации по теме
Комментарии
Автор

If you like the series please leave a like for support. My decision to keep going is based on this stuff. The 2 people that dislike, please leave feedback or its pointless

TraversyMedia
Автор

Note: 86400 * 30 is a month. For a day just use 86400 without * 30.

louisbertini
Автор

I'm a beginner and really this is one of the most useful videos I've ever seen on YouTube. Can't thank you enough Brad. <3

scienceblossom
Автор

Yet another great video Brad!

P.S.
86400 * 30 = 1 month worth of seconds or am I wrong?

xrZt
Автор

Way to go Brad. You are building a great thing here. It will eventually pay off. Big time.

pepeback
Автор

HIGH QUALITY. Videos and series. You are my go-to channel when I need help with a new technology.

ronborneo
Автор

86400 *30 seconds is one day.



Brad is living in another dimension. No wonder he is too good.

consoledoterror
Автор

Thank you very much sir for creating and uploading these golden files. Very crystal clear understanding. Really wanna donate. for this open source channel (Project).

chanderkaul
Автор

I think having some of the backend programming would also be great if it was implemented with some of the other tutorials you have that is just front end to show some how to implement it all together. But maybe without making it available for download so people cant potentially make money off of your work, and efforts to teach beginners to advanced levels. Just a thought.

btddjd
Автор

Love your tutorials. Hands down the best on YouTube

judyfisher
Автор

some developer will use htmlentities(), while others prefare htmlspecialchars(). could you please comment on the differences and at what point or condition are they used.?

isaacekhator
Автор

Thank you for this. It definitely was one of the more challenging modules to follow, and I had to take two bites at it. I learned a lot though, and I'm appreciative of it because I know how big of a deal Cookies are in Web Development. Thank you.

busyrand
Автор

Thanks for great explanation. Waiting for OOP videos!

tnsofkoalas
Автор

Watching this in 2021. 10:00 there is now always 1 cookie which is for PHPSESSID. Is this an improvement by php version or what. Thank you. Great tutorial as always.

willernesto
Автор

thanks for making my programming life. please go on with the tutorials

billymwas
Автор

Hi Brad, your doing really good. For last 2 weeks I keep following your videos and they all helpful. I wanna ask you something about htmlentities and htmlspecialchars sometimes you change between these 2 can you explain during the videos when you use something new, something you think it must be pointed at. Thanks.

aliosmanaydn
Автор

How does 86400 * 30 equals + time() = 1day? 1day is 86400 seconds so shouldn't it just be time() + 86400?

wonderram
Автор

I was getting 2 count cookies, to include PHPSESSID. Can you describe that? I purchased your OO PHP & MVC course on Udemy as well. All day PHP today! Prepping for a job interview. Thanks Brad!

bbqengineer
Автор

Brad, I like your style. It's quite natural when you come across an error and how you deal with it. I learned a lot of Django from your Udemy course. Can you build a similar medium size application in PHP? Thanks!

hammadshahir
Автор

Thanks a lot Brad! Amazing tutorial, really well explained!

samuelpimenta