in cookie_helper.php
if ( ! is_numeric($expire))
{
$expire = time() - 86500;
}
else
{
if ($expire > 0)
{
$expire = time() + $expire;
}
else
{
$expire = 0;
}
}
if parameter $expire is not passed by the function set_cookie, it has a default value ‘’, and the $expire will set to time() - 86500, which has no effect to set the cookie, you should change it to
if ( ! is_numeric($expire))
{
$expire = time() + 86500;
}
else
{
if ($expire > 0)
{
$expire = time() + $expire;
}
else
{
$expire = 0;
}
}
