Topic: "Not logged in" - weird cookie problem
In short I want to use my existing log in script to also log users into punBB automatically.
I'm using the following code:
define('PUN_ROOT', './forum/');
global $db, $pun_user, $pun_config;
require PUN_ROOT.'include/common.php';
pun_setcookie ('2', '71f8e7976e4cbc4561c9d62fb283e7f788202acb', '86400');
It even adds the username of the userid "2" to the "online" list. That proves that the userid and passwordhash are correct. However, I am not being logged in. There are no errors whatsoever, its setting the cookie, that much is for sure, but for some reason punBB tells me I'm not logged in.
I'm sure others have run into this problem...can anyone help me?