You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm afraid I just don't understand passport's session option
I just can't find the doco on it - sorry
If you are using express-session anyway, is there any reason one would use session:true in passport?
If I do set it to "true" in my small apps, there appears to be no difference? Indeed: is it OK / best / essential to set it to true (or false ??) when using with express-session?
Indeed - can I just not bother about express-session and just use the session feature in passport ... or is it something different I don't understand?
What then is the usual use case for passport's session:true? (Perhaps it has nothing to do with typical www sites, and I'm way off base?)
Thanks a million - I honestly couldn't find this explained anywhere. Cheers
This discussion was converted from issue #733 on June 19, 2021 00:00.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I make a simple web site like this ..
also using express-session ...
You login in the usual way ..
and express-session makes sessions:
I'm afraid I just don't understand passport's session option
I just can't find the doco on it - sorry
If you are using express-session anyway, is there any reason one would use session:true in passport?
If I do set it to "true" in my small apps, there appears to be no difference? Indeed: is it OK / best / essential to set it to true (or false ??) when using with express-session?
Indeed - can I just not bother about express-session and just use the session feature in passport ... or is it something different I don't understand?
What then is the usual use case for passport's session:true? (Perhaps it has nothing to do with typical www sites, and I'm way off base?)
Thanks a million - I honestly couldn't find this explained anywhere. Cheers
Beta Was this translation helpful? Give feedback.
All reactions