autoLogin logout fix done

If a user sets Auto Login feature as enabled:
Before: after clicking on logout, user still remained in the session.
After changes: Now on clicking logout with Auto Login feature enabled, if a user clicks on logout, session is destroyed and user is redirected to login page.