High Definition Standard Definition Theater
Video id : NhrbENvDlmQ
ImmersiveAmbientModecolor: #d2efc3 (color 1)
Video Format : 22 (720p) openh264 ( https://github.com/cisco/openh264) mp4a.40.2 | 44100Hz
Audio Format: Opus - Normalized audio
PokeTubeEncryptID: 6602a70448a4c9f68e5e28c7ff4d5a635c8b47a60d7fe0acd3de0697e8f34074d0690f7ea97cb364570a9214e059f314
Proxy : eu-proxy.poketube.fun - refresh the page to change the proxy location
Date : 1715463130762 - unknown on Apple WebKit
Mystery text : TmhyYkVOdkRsbVEgaSAgbG92ICB1IGV1LXByb3h5LnBva2V0dWJlLmZ1bg==
143 : true
How to Pass Authenticated User to the Request - Build Expense Tracker App With PHP 8
Jump to Connections
5,133 Views • Nov 8, 2022 • Click to toggle off description
In this video we persist the logged in user object so that we can access the logged in user throughout the request.

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: www.patreon.com/programwithgio
THANK YOU!

🛠️ TOOLS & SERVICES I USE
Digital Ocean Hosting - Get 100$ credit - m.do.co/c/38b935ad74e5
Domains on Namecheap - namecheap.pxf.io/rnRjdQ
Envato Elements - 1.envato.market/c/2937311/298927/4662

LESSON P.6
Starting Source Code - github.com/ggelashvili/expennies/tree/P6_Start
Ending Source Code - github.com/ggelashvili/expennies/tree/P6_End
Course Outline - github.com/ggelashvili/learnphptherightway-outline
Course Playlist -    • Learn PHP The Right Way - Full PHP Tu...  

** Affiliate Disclaimer: Some of the above links may be affiliate links, which may generate me a sales commission at no additional cost to
Metadata And Engagement

Views : 5,133
Genre: Education
Date of upload: Nov 8, 2022 ^^


Rating : 5 (0/173 LTDR)
RYD date created : 2024-05-10T18:56:32.12352Z
See in json
Tags
Connections
Nyo connections found on the description ;_; report a issue lol

YouTube Comments - 51 Comments

Top Comments of this video!! :3

@omaryahia

3 months ago

you improve the code structure many times more effort from your side but very educational for us thank you 🌟

1 |

@ajaymeledath958

1 year ago

You're amazing. Your's are the best php tutorial I've been by far in youtube.

5 |

@davidfeldt1362

2 weeks ago

Gio, what is your perspective on using JWT tokens for authentication instead of the session cookie approach that you have in these videos? We have a mobile application that will require authentication and we want to use JWT for the mobile app. There is also a web app and we don't want to have two different approaches within the same codebase.

|

@Zubbee

1 year ago

Shoot! Youtube notification was late! But I'm super glad. Lemme dig in. Thanks Gio

1 |

@hansschuijff

1 year ago

A lot of refactoring in this lesson and I had to go slow to understand it al. Not always sure of why, but that is perhaps the difference in experience. You seem very capable and experienced in this way of coding. And passing credentials when you only need email or password seems to obscure the purpose of some methods perhaps, but that is probably done this way since you know it is not an end-stage of it and will change to a DTO solution or will get more credentials than we use now. I am getting to understand middle ware a bit now, it seems something like a wrapper function that basically uses the call stack. It's a nice solution. But all in all a great inside in your way of looking at it and experiencing how you work. If this is the speed you can do it unprepared too, you're much faster in refactoring than I can see myself be. 🙂 Impressive. I do find in OOP that the more a project grows, the more difficult it seems to keep everything straight (what is where) and the need of a good IDE makes a difference. I have tried to understand and debug some WordPress plugins in OOP and when they were big, like The events calendar, it wasn't easy for me to get into the structure of it, so I would find where to go. I always felt in oop you need a roadmap to find out where to go. Perhaps now I have learned some design patterns in your course I would recognize more of it. I hope so. This is a nice project to work on. Thank you for the lessons.

|

@MyMedo27

1 year ago

Hello, First of all thanks for your great content which is so helpful small notice, I think this video is flipped with the next one cause at you say last we talked about session fixation and hijacking but these topics are in the next video

|

@bijayaprasadkuikel5162

1 year ago

It's sad that we need to wait 1 whole week to get new videos. Awesome job. 👍

|

@kenjohnsiosan9707

1 year ago

as always your tutorial series is very helpful

|

@AVa1lable1

1 year ago

Valuable. Nice job!

|

@pulpsting

1 year ago

You are making a whole framework lol.

|

@Armando-px8hi

5 months ago

Awesome work As Always.And of course can not stop apllauding you fo this job. Just one question Gio, do you know what can be the reason that every change I do in the twig templates it just do not work. For example the logout ui is not being displayed in my server. I tried it in my own code, then I tried to take it from your github but it was not helpful. Do you have any idea?

1 |

@dev_troy8903

1 month ago

surprisingly the order of middleware registration matters. I spent 20 minutes trying to figure out why AuthenticationMiddleware is not working. It was the order of registration of middlewares. how does that affect the program ??

|

@mwaas

1 year ago

Another video another greatness. I have a question about login tocken. We use cookies to add a remember me feature that keeps the user logged in after the browser is closed. we store user id or token reference to user in cookies. but I can copy cookies form user's browser and paste it in my browser so I have access to user's acount . what is the method to preventing login by copy login coockies? I just need refrence or any artical about this topic sorry for the poor english

|

@bakosyy

5 months ago

Is there anything wrong if we start the sessions and save them immediately before creating a response like this? $this->session->start(); $this->session->save(); $response = $handler->handle($request); return $response; What is the difference if we start the session, then create a response and only then save the sessions and return response?

|

@mortezaayashi9581

1 year ago

Why we didn't use Repository design pattern instead of UserServiceProvider? BTW when we should use interfaces and when we shouldn't, what's about abstract classes?

|

@chan270

1 year ago

How can we restrict a user to only be logged in on one device and logged out from all other devices. Good for financial apps.

|

@Damisicotvshows

1 year ago

Pls how can I get all this lecture source code, I try to click the link in description am unable to download it

|

@mwaas

1 year ago

I think there is mistake in order videos because "Session Based Authentication" is the lesson 107 and this lesson is 106

|

Go To Top