title: Logout doesn't clear the session, session.destroy doesn't works
body: <p>I am developing an express application and i need to implement login and logout.</p>
  
  <p>I have created a session using the following code during login.</p>
  
  <pre><code>req.session.login_id = rows[0][0]["login_id"];
  req.session.save(function(err) {
    if(err){
      console.log('Error in creating session.')
    }
    else  {
      res.redirect('/profile')
    }
  })
  </code></pre>
  
  <p><strong>But the following doesn't work to clear session:</strong></p>
  
  <pre><code>router.get('/logout',(req,res,next)=&gt;{
    req.session.destroy(function (err) {
      if (!err){
        res.redirect('/')
      }else{
        return next(err)
      }
    })
  })
  </code></pre>