$_POST['username'] = stripslashes($_POST['username']);
$hour = time() + 3600;
setcookie(uusername, $_POST['username'], $hour, "/", ".streeteye.info", 1);
setcookie(upassword, $_POST['pass'], $hour, "/", ".streeteye.info", 1);
Basically when you login from "subdomain1.streeteye.info" it sets the cookie for "streeteye.info" and "subdomain1.streeteye.info" but not "subdomain2.streeteye.info". How could I change this code to set a cookie for subdomain1, subdomain2 and streeteye.info?
$hour = time() + 3600;
setcookie(uusername, $_POST['username'], $hour, "/", ".streeteye.info", 1);
setcookie(upassword, $_POST['pass'], $hour, "/", ".streeteye.info", 1);
Basically when you login from "subdomain1.streeteye.info" it sets the cookie for "streeteye.info" and "subdomain1.streeteye.info" but not "subdomain2.streeteye.info". How could I change this code to set a cookie for subdomain1, subdomain2 and streeteye.info?