🐛 | Node.js integration | [warning] session_id(): Cannot change session id when headers already sent
🇮🇳India sirsendu
🐛 | Node.js integration | [warning] session_id(): Cannot change session id when headers already sent
🇮🇳India sirsendu
Thanks cilefen for the quick reply.
From the site's 'login' page, this warning is thrown and can be observed in the watchdog table also.
The following is the code block (found in nodejs.module) from where the warning is thrown.
/**
* Default nodejs_auth_get_token() implementation.
*/
function nodejs_auth_get_token_callback(SessionInterface $session) {
// The session id stored in the database is hashed. Use the same to generate
// the token.
return md5(Crypt::hashBase64($session->getId()));
}
🐛 | Node.js integration | [warning] session_id(): Cannot change session id when headers already sent
🇮🇳India sirsendu
sirsendu → created an issue.