/**
  * Defines the constants that are used in each link of WCF.
  * If cookies are enabled the constants are empty.
  */
 protected function defineConstants()
 {
     // check cookies
     $this->handleCookie();
     if (!$this->useCookies && !$this->spiderID) {
         parent::defineConstants();
     } else {
         if (!defined('SID_ARG_1ST')) {
             define('SID_ARG_1ST', '');
         }
         if (!defined('SID_ARG_2ND')) {
             define('SID_ARG_2ND', '');
         }
         if (!defined('SID_ARG_2ND_NOT_ENCODED')) {
             define('SID_ARG_2ND_NOT_ENCODED', '');
         }
         if (!defined('SID')) {
             define('SID', '');
         }
         if (!defined('SID_INPUT_TAG')) {
             define('SID_INPUT_TAG', '');
         }
         // security token
         if (!defined('SECURITY_TOKEN')) {
             define('SECURITY_TOKEN', $this->getSecurityToken());
         }
         if (!defined('SECURITY_TOKEN_INPUT_TAG')) {
             define('SECURITY_TOKEN_INPUT_TAG', '<input type="hidden" name="t" value="' . $this->getSecurityToken() . '" />');
         }
     }
 }