-
Notifications
You must be signed in to change notification settings - Fork 10.1k
Closed
Description
data.headers.cookie is null since 0.8.6 (working on 0.8.5). Authorization as bellow is broken.
sio.set('authorization', function (data, accept) {
if (data.headers.cookie) {
data.cookie = parseCookie(data.headers.cookie);
data.sessionID = data.cookie['express.sid'];
// save the session store to the data object
// (as required by the Session constructor)
data.sessionStore = sessionStore;
sessionStore.get(data.sessionID, function (err, session) {
if (err) {
accept(err.message, false);
} else {
// create a session object, passing data as request and our
// just acquired session data
data.session = new Session(data, session);
accept(null, true);
}
});
} else {
return accept('No cookie transmitted.', false);
}
});
``` (from http://www.danielbaulig.de/socket-ioexpress/)
Metadata
Metadata
Assignees
Labels
No labels