I am going through some PHP tutorials on how to set cookies. I have noticed that cookies are successfully set on FF4 and IE9, however it does not get set in Chrome (11.0.696.60). The PHP file was served from XAMPP (localhost).
I tried the example from w3schools:
<?php
setcookie("user", "Alex Porter", time()+3600);
?>
And from this site (for localhost environments):
<?php
setcookie("username", "George", false, "/", false);
?>
Thanks in advance.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…