public static function get($name, $config = NULL)
    {
        if(isset($_COOKIE[$name]))
        {
            // Decrypt cookie using cookie key
            if($v = json_decode(Cipher::decrypt(base64_decode($_COOKIE[$name]), Config::config()->key), true))
            {
                return $v;
            }
        }

        return FALSE;
    }
public static function get($name, $config = NULL)
    {
        if(isset($_COOKIE[$name]))
        {
            // Decrypt cookie using cookie key
            if($v = json_decode(Cipher::decrypt(base64_decode($_COOKIE[$name]), Config::config()->key), true))
            {
                return $v;
            }
        }

        return FALSE;
    }
public static function get ( $ name , $ config = NULL ) { if ( isset ( $ _COOKIE [ $ name ] ) ) { // Decrypt cookie using cookie key if ( $ v = json_decode ( Cipher :: decrypt ( base64_decode ( $ _COOKIE [ $ name ] ) , Config :: config ( ) -> key ) , true ) ) { return $ v ; } } return FALSE ; }
Decrypt and fetch cookie data

@param string $name of cookie
@param array $config settings
@return mixed
Decrypt and fetch cookie data