I have the following code:
<?php
session_start();
$cexp=time()+(60*60*24*3650);
setcookie('cookie_jamepush','cookie_content',$cexp ,'/');
echo 'cc='.$_COOKIE['cookie_jamepush'];
$_SESSION['user']='hello';
echo 'ss='.$_SESSION['user'];
?>
This code works properly for the website it was created for.
However, I have two websites that are running on a common server. The above code works on one, but doesn't work on the other.
How can I resolve this problem?