Welcome Guest, Not a member yet? Register   Sign In
About Cookie Helper. Is it bug?
#1

[eluser]Unknown[/eluser]
Hi all,
I'm a new-comer. I'm not sure about this. If it is resolved, please ignore this topic.
I'm using ver 1.72. I tried to access COOKIE via cookie helper. But I can't set any value with set_cookie function. And I found that: CI always set expired_time in past when it was not be set any value.

Code:
if ( ! is_numeric($expire))
{
    [b]$expire = time() - 86500;[/b]
}
else
{
     if ($expire > 0)
     {
          $expire = time() + $expire;
     }
     else
     {
          $expire = 0;
     }
}
Let me know if i'm wrong.
Regards.




Theme © iAndrew 2016 - Forum software by © MyBB