Fixed session error.
Fixed logout header issue.