express 手動刪除session狀態(即登出功能) 在退出按鈕被點擊后,發送請求/logout,服務端做如下處理: app.get('/logout', function() { delete req.session.user; ...