Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

5
  • I haven't got a chance to test your code yet but one question comes on top of my head is Can we put more than 1 request(req) in a code? I mean, do you currently have working a code where there are two (or more) request? Commented Jun 15, 2024 at 0:51
  • How did you configure express-session and connect-flash? Share the code about these two configurations. Commented Jun 15, 2024 at 5:40
  • @FanoFN yes i am using two req at the same time in my code Commented Jun 15, 2024 at 9:14
  • @Subha i have configured them in my main.js file and all session requesta are working in my other routes like post ang get Commented Jun 15, 2024 at 9:15
  • 2
    The “documentation” of connect-flash says The flash is a special area of the session used for storing messages. and Flash messages are stored in the session., so it would absolutely make sense that it doesn't work anymore after destroying the session. Commented Jun 17, 2024 at 6:43