code: protected function getLoginStatus($strCookie)
  	{
  		@trigger_error('Using Frontend::getLoginStatus() has been deprecated and will no longer work in Contao 5.0. Use Symfony security instead.', E_USER_DEPRECATED);
  
  		$objTokenChecker = System::getContainer()->get('contao.security.token_checker');
  
  		if ($strCookie == 'BE_USER_AUTH' && $objTokenChecker->hasBackendUser())
  		{
  			// Always return false if we are not in preview mode (show hidden elements)
  			if (TL_MODE == 'FE' && !$objTokenChecker->isPreviewMode())
  			{
  				return false;
  			}
  
  			return true;
  		}
  
  		if ($strCookie == 'FE_USER_AUTH' && $objTokenChecker->hasFrontendUser())
  		{
  			return true;
  		}
  
  		return false;
  	}
docs: Check whether a back end or front end user is logged in
  
  @param string $strCookie
  
  @return boolean
  
  @deprecated Deprecated since Contao 4.5, to be removed in Contao 5.0.
  Use Symfony security instead.