Add support for "header" sessions.
Fixed stray unused "sid" property.