Hello to all. Yesterday I came across an issue where I can't execute a cookie for some reason on the server. It works locally though without no problems. The domain's path is "/tmp" for session_path. Here's the code. Thanks for comments:
Code:
if (!isset($_COOKIE['TestCookie'])) {
$vote_com2 = mysqli_query($connect,"UPDATE news SET up = '".$upv."' WHERE news_id = '$idn'" );
setcookie("TestCookie", $idn, time()+3600,"/",".mydomain.net");
}