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

Login

Who's Online

129 user(s) are online (96 user(s) are browsing Support Forums)


Members: 1


Guests: 128


heyula,

more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits