How to use cookies from a component?
How can I use cookies in a Joomla component? setcookie( JUtility::getHash('JLOGIN_REMEMBER'), false, time() - 86400, '/' ); Can anybody describe how this works? // Get input cookie object $inputCookie = JFactory::getApplication()->input->cookie; // Get cookie data $value = $inputCookie->get($name = 'myCookie', $defaultValue = null); // Check that cookie exists $cookieExists = ($value !== null); // Set cookie data $inputCookie->set($name = 'myCookie', $value = '123', $expire = 0); // Remove cookie $inputCookie->set('myCookie', null, time() - 1); Some rules about $expire value its a Unix