$id = JRequest::getVar('id', 0, 'int');
$name = JRequest::getVar('name', '', 'post', 'string');
$token = JRequest::getVar('token', '', 'cookie', 'string');This code retrieves the value of the "token" cookie and casts it to a string. If the cookie is not set, the default value of an empty string is used. The JRequest object is included in the Joomla CMS and is part of its core framework. It is not a separate package library.