Clear session username variable if authenticate attribute set to false

Resolved bug#5122