Understanding sessions in express

Hello guys, sorry to disturb you all; I'm currently learning about managing sessions in express and I came across 2 properties: resave and saveUninitialized. I didn't understand these 2 properties; where and why do we use them? What does they do? From what I have understand, resave prevents the session from storing data for each request in our store (but what if we don't use a store? Like in my case; when is a store needed?) while saveUninitialized just makes sure that we create a cookie if we modify the request session
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server