const ezSession = require('...');
ezSession.getSession(field, content);
EXAMPLE: ezSession.getSession('username', 'xico');
field - field to search
content - content to be searched in that field
ezSession.createSession(username, expireTime, details);
EXAMPLE: ezSession.createSession('xico', 30, { token: 'abcdx', socketId: '0000' });
username - user identifier
expireTime - time in minutes that session lasts
details - object with the extra details needed
ezSession.endSession(id);
EXAMPLE: ezSession.endSession('123456');
id - session id generated on creation
Sessions are deleted when expired