NineChime forum

Furry stuff, oekaki stuff, and other stuff.

You are not logged in.

#1 06-01-2007 12:24:51

Nullig
Member

Cookies

I want to set a cookie domain, so that the OekakiU cookie is available to all the subdomains on my site.

From what I can see, it looks like I have to change this line of the functions.php to add:

$cookie_domain = ".mydomain.com";

and change:

setcookie ('OekakiU', $row['usrname'], time() + $cookie_life, $cookie_path);

to

setcookie ('OekakiU', $row['usrname'], time() + $cookie_life, $cookie_path, $cookie_domain);

Are there any other areas/files that I need to change?

Nullig

Offline

#2 06-02-2007 03:51:26

Waccoon
Administrator

Re: Cookies

In Wacintaki 1.3.7, there are 14 instances of setcookie():

functions.php:  12 calls
boot.php:  2 calls

I'm going to make a few wrappers in Wacintaki 1.3.8 for sending mail, sending mailbox messages, setting cookies, and handling error logs.  I'll be sure to add the $cookie_domain variable to the hacks file, too.

Offline

Board footer

Yep, still running PunBB
© Copyright 2002–2008 PunBB