header session check modified.