I don't really want to indulge in something else I know nothing about, and also like I said, the host confirmed that php, sessions and cookies were working fine. It must be something else in my code that I'm doing wrong
I've tried taking the most basic cookie function from w3 schools andplacing it in random places, and even where setcookie is in the html head section nada <?php $expire=time()+60*60*24*30; setcookie("user", "Alex Porter", $expire); ?> <?php // Print a cookie echo $_COOKIE["user"]; // A way to view all cookies print_r($_COOKIE); ?> print_r returns a whole mess of crap like before
try using another web browser, maybe your browser settings does not allow cookies it may be! If this wont resolve then its for sure your web server configurations.