Тёмный

Express JS #13 - Sessions Pt. 1 

Anson the Developer
Подписаться 50 тыс.
Просмотров 6 тыс.
50% 1

Watch the full tutorial here: • Express JS Full Course
Code Repository: github.com/stuyy/expressjs-fu...
Support the Channel:
Become a Member: ru-vid.com...
Become a Patreon: / stuyy
Buy me a Coffee: ko-fi.com/anson
Donate on Streamlabs: streamlabs.com/ansondevacadem...
Donate on PayPal: paypal.me/ansonfoong
Connect with me:
Twitter: / ansonthedev
Discord: / discord
GitHub: github.com/stuyy
Twitch: / stuy

Хобби

Опубликовано:

 

15 фев 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 16   
@robertoaraujo6367
@robertoaraujo6367 4 месяца назад
Best tutorial.
@danielouattara3857
@danielouattara3857 2 месяца назад
Thank you Anson for the material you provide to all of us. In this course Anson artificially alters the session object in the index.js, at `app.get('/', ...)`, so that when he makes a request using development tools like `thunder client` or `postman`, the output of `console.log(req.sessionID)` will always be the same on any request. This tries to justify how applications sever can keep track of user for subsequent requests. Cool ! And the game is totally different on a real web browser: there, developers don't have to do anything on the session object and the sessionID value will remain the same. Am I wrong Anson ?
@yurikanaeru634
@yurikanaeru634 3 месяца назад
thank you very much
@kuruxxii
@kuruxxii Месяц назад
excellent
@hasibalfuad9652
@hasibalfuad9652 4 месяца назад
Great content. Can you please tell What is the theme and the font you are using?
@muthanaalahmad5843
@muthanaalahmad5843 Месяц назад
i think it is monolisa, u can use cascade mono as it is free
@josephkoh1562
@josephkoh1562 4 месяца назад
hey anson i have a qn... So for example, when u visit the ecomm web app how does the app knows whether to render an admin login page or user login page? As i know usually there is a different login page based on the user role like admin and user
@ansonthedev
@ansonthedev 3 месяца назад
Usually you'd setup roles for a user on the server side, and the client side will see the roles property when the user data is fetched. If the user is trying to visit an admin page or restricted page, you want to check if they have the correct role first before granting access.
@uni8380
@uni8380 2 месяца назад
even with the visited set to true , its still generating new sessions for the same requests
@ansonthedev
@ansonthedev 2 месяца назад
Check your Session config again.
@uni8380
@uni8380 2 месяца назад
@@ansonthedev i fixed it . thanks
@hugosenee2504
@hugosenee2504 Месяц назад
Hi ! I have the same problem, can you tell me how did you fix it please ?
@am1rn
@am1rn 9 дней назад
@@hugosenee2504 just put your code that related to session at chatgpt and tell it why its still generate a new session even though the visited set to true and make an explanation about it. ChatGPT is my best friend lol.
@tarunkatal3389
@tarunkatal3389 3 месяца назад
Slides are too fast in start.. o/w HQ content❤
Далее
Express JS #14 - Sessions Pt. 2
22:45
Просмотров 2,7 тыс.
Express JS #3 - Route Parameters
9:31
Просмотров 5 тыс.
Gale Now VS Then Edit🥵 #brawlstars #shorts
00:15
Просмотров 930 тыс.
The ultimate NestJS Authentication guide
31:00
I Stopped Using Express.js: Because Bun and Hono 🔥
10:23
Express JS #9 - Middleware
21:42
Просмотров 3,8 тыс.
Express JS #2 - Get Requests
9:44
Просмотров 6 тыс.
Why I'm Using Express Instead of NextJS
5:23
Просмотров 100 тыс.
Express JS #6 - PUT Requests
14:00
Просмотров 2,7 тыс.
Стильная упаковка
0:14
Просмотров 1,4 млн
Pulling Hinges with A Halligan
0:26
Просмотров 17 млн