No video

Express JS #13 - Sessions Pt. 1

  Рет қаралды 9,206

Anson the Developer

Anson the Developer

Күн бұрын

Пікірлер: 20
@robertoaraujo6367
@robertoaraujo6367 5 ай бұрын
Best tutorial.
@danielouattara3857
@danielouattara3857 4 ай бұрын
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 ?
@abdullhaseeb4157
@abdullhaseeb4157 25 күн бұрын
for me without setting session.visited = true the session id is same , is that a problem?
@yurikanaeru634
@yurikanaeru634 5 ай бұрын
thank you very much
@hasibalfuad9652
@hasibalfuad9652 6 ай бұрын
Great content. Can you please tell What is the theme and the font you are using?
@muthanaalahmad5843
@muthanaalahmad5843 3 ай бұрын
i think it is monolisa, u can use cascade mono as it is free
@kuruxxii
@kuruxxii 3 ай бұрын
excellent
@josephkoh1562
@josephkoh1562 5 ай бұрын
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 5 ай бұрын
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 4 ай бұрын
even with the visited set to true , its still generating new sessions for the same requests
@ansonthedev
@ansonthedev 4 ай бұрын
Check your Session config again.
@uni8380
@uni8380 4 ай бұрын
@@ansonthedev i fixed it . thanks
@hugosenee2504
@hugosenee2504 2 ай бұрын
Hi ! I have the same problem, can you tell me how did you fix it please ?
@am1rn
@am1rn 2 ай бұрын
@@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.
@echendukwe1510
@echendukwe1510 20 күн бұрын
@@uni8380 how did you fix it please.
@echendukwe1510
@echendukwe1510 19 күн бұрын
Hi, lovely video but i do get a cookies error in production
@ansonthedev
@ansonthedev 19 күн бұрын
I don't know how to help you if you don't provide the error you have.
@tarunkatal3389
@tarunkatal3389 5 ай бұрын
Slides are too fast in start.. o/w HQ content❤
Express JS #14 - Sessions Pt. 2
22:45
Anson the Developer
Рет қаралды 4,1 М.
The Hidden Cost Of GraphQL And NodeJS
28:35
ThePrimeTime
Рет қаралды 189 М.
Can This Bubble Save My Life? 😱
00:55
Topper Guild
Рет қаралды 68 МЛН
Look at two different videos 😁 @karina-kola
00:11
Andrey Grechka
Рет қаралды 14 МЛН
Harley Quinn's revenge plan!!!#Harley Quinn #joker
00:59
Harley Quinn with the Joker
Рет қаралды 22 МЛН
7 Days Stranded In A Cave
17:59
MrBeast
Рет қаралды 79 МЛН
Express-Session: Basics
13:26
unblockMe
Рет қаралды 51
Express JS #12 - Cookies
20:06
Anson the Developer
Рет қаралды 5 М.
The cloud is over-engineered and overpriced (no music)
14:39
Tom Delalande
Рет қаралды 552 М.
Why I'm Using Express Instead of NextJS
5:23
Josh tried coding
Рет қаралды 108 М.
Node.js is a serious thing now… (2023)
8:18
Code With Ryan
Рет қаралды 641 М.
Express JS #9 - Middleware
21:42
Anson the Developer
Рет қаралды 6 М.
Can This Bubble Save My Life? 😱
00:55
Topper Guild
Рет қаралды 68 МЛН