Problem on logout

Hi,

I facing an issue that once I click logout, the page suppose redirect me back to Login page but sometimes it bring me back to Main page and the logout icon is missing, this happens quite frequently.