Welcome Guest, Not a member yet? Register   Sign In
Cookie Helper default expire time
#1

[eluser]bbiao[/eluser]
in cookie_helper.php
Code:
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
Code:
if ( ! is_numeric($expire))
{
    $expire = time() + 86500;
}
else
{
    if ($expire > 0)
    {
        $expire = time() + $expire;
    }
    else
    {
        $expire = 0;
    }
}


Messages In This Thread
Cookie Helper default expire time - by El Forum - 05-04-2008, 10:53 PM
Cookie Helper default expire time - by El Forum - 05-05-2008, 05:10 AM
Cookie Helper default expire time - by El Forum - 05-05-2008, 05:36 AM
Cookie Helper default expire time - by El Forum - 05-05-2008, 04:12 PM
Cookie Helper default expire time - by El Forum - 05-05-2008, 07:14 PM
Cookie Helper default expire time - by El Forum - 05-05-2008, 07:35 PM
Cookie Helper default expire time - by El Forum - 08-12-2009, 09:07 PM
Cookie Helper default expire time - by El Forum - 08-13-2009, 05:55 AM
Cookie Helper default expire time - by El Forum - 08-13-2009, 08:06 AM



Theme © iAndrew 2016 - Forum software by © MyBB