Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

express session destroy

 req.session.destroy((err) => {
        if (err) {
            console.log(err)
            return next(err)
        }

        return res.redirect("/auth/login")
    })
 
PREVIOUS NEXT
Tagged: #express #session #destroy
ADD COMMENT
Topic
Name
2+9 =