fixed an issue where the user was automatically logged out when the logout url was used inside an img bbcode