Это мой код сервера, пожалуйста, посмотрите на комментарии в коде.
var app = express.createServer();
app.get('/', function(req, res){
// create a session with the value of an email for example: me@gmail.com
});
// down here I want to check the session if the session exist
if( there is a session with value me@gmail.com){
//do stuff
}