1 (edited by AAley 2005-05-26 15:45)

Topic: cookiedomain

I installed PunBB on my server, but i can't log-in.

I searched the forum and got to the conclusion that it is the cookie domain that gives the problem.

My config.php is:

<?php

$db_type = 'mysql';
$db_host = 'localhost';
$db_name = 'punbb';
$db_username = 'root';
$db_password = '';
$db_prefix = '';
$p_connect = false;

$cookie_name = 'aaley.zapto.org';
$cookie_domain = 'aaley.zapto.org:2220';
$cookie_path = '/';
$cookie_secure = 0;
$cookie_seed = '5c0c64fb';

define('PUN', 1);

And my website adres is http://aaley.zapto.org:2220
(No need to try it, it goes down all the time right now :d)
I really don't know what to do now, don't think i did something wrong eh?

Edit: Sorry wrong section, didn't saw the troubleshooting forum sad

Greets,
AAley

Re: cookiedomain

Don't put the port number in smile
And try making it .zapto.org

3

Re: cookiedomain

<?php

$db_type = 'mysql';
$db_host = 'localhost';
$db_name = 'punbb';
$db_username = 'root';
$db_password = '';
$db_prefix = '';
$p_connect = false;

$cookie_name = 'aaley.zapto.org';
$cookie_domain = '.zapto.org';
$cookie_path = '/';
$cookie_secure = 0;
$cookie_seed = '5c0c64fb';

define('PUN', 1);

Nope, doesn't work sad

Re: cookiedomain

Try not using periods in the cookie name as well, dunno if those matter

5

Re: cookiedomain

Great it works now with this code:

<?php

$db_type = 'mysql';
$db_host = 'localhost';
$db_name = 'punbb';
$db_username = 'root';
$db_password = '';
$db_prefix = '';
$p_connect = false;

$cookie_name = 'iamacookie';
$cookie_domain = '.zapto.org';
$cookie_path = '/';
$cookie_secure = 0;
$cookie_seed = '5c0c64fb';

define('PUN', 1);

! AAley !

Re: cookiedomain

Glad we figured it out smile

7

Re: cookiedomain

Moved here from bug reports.