Add os setting to disable site login and logout logged users.

#4354