So, I have a server.js with the function
function isLogged(req) {
var x = false;
if(req.session.logged === 'Yes'){
x = true;
}
else{
return false;
}
}
I want to call this function with the javascript for another page. For example on the welcome.js page.