1
hello at all,
this is my first post in the english forum, because my english isn't verry good.
here my problem:
I want to write some cookies from an PHP-file. This one is in /themes/themename/cookiewrite.php
here a littlebit of the code
$set = $_GET['color'];
$set = preg_replace('#[^a-zA-Z0-9_-]#', '', $set);
setcookie ('color', $set, time()+31536000, '/', substr(XOOPS_URL, 7) , '0');
header("Location: $HTTP_REFERER");
With this code, the cookie will be set to ".www.domain.de" and not to "www.domain.de". And that is the problem.
Maybe someone has an idea to fix this.
Greets Knallkopp