1
Knallkopp
cookie writing problem (.www.domain.de)
  • 2006/8/20 12:46

  • Knallkopp

  • Just popping in

  • Posts: 5

  • Since: 2006/8/2 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'$settime()+31536000'/'substr(XOOPS_URL7) , '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