Azhar-Ali, search strings
setcookie("cuid", $cuid, time() + 3600 * 24 * 365);
setcookie("cups", $cups, time() + 3600 * 24 * 365); in the file login.phpreplace to
setcookie("cuid", $cuid, time() + 3600 * 24 * 365, "/", ".example.com");
setcookie("cups", $cups, time() + 3600 * 24 * 365, "/", ".example.com");example.com replace to your site.
dot on begin - required.