Moin!
ich will ja nix sagen, aber falls mir irgendeiner irgendeinen klitzekleinen Grund nenne kann, weswegen dieses Cookie nicht funktioniert - ehmmmm danke dann halt ;-)
Die Spezifikation zum Thema Cookies sagt zum Parameter "Domain" folgendes:
"Only hosts within the specified domain can set a cookie for a domain and domains must have at least two (2) or three (3) periods in them to prevent domains of the form: ".com", ".edu", and "va.us". Any domain that fails within one of the seven special top level domains listed below only require two periods. Any other domain requires at least three. The seven special top level domains are: "COM", "EDU", "NET", "ORG", "GOV", "MIL", and "INT"."
http://wp.netscape.com/newsref/std/cookie_spec.html
Ich würde meinen Arsch drauf verwetten, dass deine Domainangabe keine zwei oder drei Punkte enthält.
Auszug aus meinem Script:
$cookievalue = (string) time();
$cookie = setcookie("LoginTime", $cookievalue, time()+60000, "/nachrichten/", "myserver") or die("Cookie konnte nicht gesetzt werden");
print ($cookie ? '<html><head><meta http-equiv="refresh" content="0; URL=portal.php"></head><body>Refresh</body></html>' : 'Cookie konnte nicht gesetzt werden');
- Sven Rautenberg
Die SelfHTML-Developer sagen Dankeschön für aktuell 20885,68 Euro Spendengelder!