@dobsun please go through the phprad View Helper Functions for functions you can use. Your issue is this header("Location: print_link('product')") PHPrad already has a function to hand redirect, redirect_to_action($action_name=null) and redirect($url) and make sure to add exit after the redirect.
set_cookie("user",$value,1);
redirect("/product");
exit;
in the product page
$userDetails = get_cookie("user");