title: How to redirect twice in express js?
body: <p>I have added flash message on page using connect-flash.</p>
  <p>For displaying flash message, I have redirected page to same page with following code</p>
  <pre><code> req.flash('success', 'Password Changed successfully, you will be logout after 10 seconds');
   return res.redirect('/user/changepwd');
  </code></pre>
  <p>by this way, I can show flash message on the page. but after that I want user to auto logout and redirect to homepage.</p>
  <p>How can I achieve that ? can we redirect twice with some setTimeout() ?</p>
  <p><a href="https://i.stack.imgur.com/vanOt.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/vanOt.png" alt="enter image description here" /></a></p>