Does anyone know why I cant get cookies from the remote server with the code below?
<?php
$inputCookie = JFactory::getApplication()->input->cookie;
$value = $inputCookie->get($name = 'hotsiteX', $defaultValue = null);
$mark = 0;
if ( is_null($value) ): ?>
"html code"
<?php $mark = 1;
$inputCookie->set($name = 'hotsiteX', $value = 'accessed', $expire = time() + (100));
endif; ?>
?>
$cookieValue is always empty, I checked and its already set on my browser, besides, it also works perfectly on localhost.
I already tried !isset($_COOKIE)
and print($_COOKIE)
, its always empty at the remote server.