I have the following code and I am not sure how to check if the session key exists already, because I do not want to create another redis session if it already exists.
The request object is new with every call but I know that the event.sender.id is the same on each request.
// If not set then create the session object
if (!req.session.key) {
console.log('Set session variable');
req.session.key = event.sender.id;
console.log('*** SESSION CREATED WITH ' + event.sender.id);
}