Welcome Guest, Not a member yet? Register   Sign In
Problem with Cookies not saving
#7

[eluser]jgetner[/eluser]
why not just use regular php instead of CI? this would be faster and validating a cookie is as easy as going isset();

Code:
setcookie('projects' , '325' , time() + 3600);

function get_cookies($name)
{
    if (!isset($_COOKIE[$name]))
    {
        return(FALSE);
    }
    
    else
    {
        isset($_COOKIE[$name])
        {
            return htmlspecialchars($_COOKIE[$name]);
        }
    }
}


Messages In This Thread
Problem with Cookies not saving - by El Forum - 03-31-2011, 05:36 PM
Problem with Cookies not saving - by El Forum - 03-31-2011, 07:10 PM
Problem with Cookies not saving - by El Forum - 03-31-2011, 07:40 PM
Problem with Cookies not saving - by El Forum - 03-31-2011, 08:06 PM
Problem with Cookies not saving - by El Forum - 03-31-2011, 08:07 PM
Problem with Cookies not saving - by El Forum - 03-31-2011, 08:29 PM
Problem with Cookies not saving - by El Forum - 03-31-2011, 08:37 PM
Problem with Cookies not saving - by El Forum - 03-31-2011, 08:44 PM



Theme © iAndrew 2016 - Forum software by © MyBB