Implemented session_connected(), which had been declared in the header but never