GENWiki

Premier IT Outsourcing and Support Services within the UK

User Tools

Site Tools


joomla:read_and_write_values_from_the_cookie

Get the cookie object

$Cookie  = JFactory::getApplication()->input->cookie;
$value = $Cookie->get($name = 'myCookie', $defaultValue = null);
$cookieExists = ($value !== null);
$Cookie->set($name = 'myCookie', $value = '123', $expire = 0);
$Cookie->set('myCookie', null, time() - 1);
/home/gen.uk/domains/wiki.gen.uk/public_html/data/pages/joomla/read_and_write_values_from_the_cookie.txt · Last modified: 2019/05/20 10:14 by genadmin

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki