path is '/' and domain is empty. that script is in root, and punbb is in forum/. all includes is good, in that same page i print $forum_user['username'], after login in punbb login form, it print username, but after i set cookies in my page, it print guest

so maybe can sombody help me?

yes, exactly. I need to make autologin. for 1.2 version are many examples and for 1.3 version i dont find any working example

hello,
i read many post about punBB 1.3 integration, but i don't find any working solution. I wont to make our login form and autologin to forum by setting cookie. For testing i put data from database manually So i used that code:

define (FORUM_ROOT, 'forum/');
require_once FORUM_ROOT.'include/common.php';
$user_id = 'gokiux';
$form_password = '12345';
$salt = 'YsxR\cDvTy!#';   //salt is too from table users
$form_password_hash = forum_hash($form_password, $salt);
$expire = ($save_pass) ? time() + 1209600 : time() + $forum_config['o_timeout_visit'];
forum_setcookie($cookie_name, base64_encode($user_id.'|'.$form_password_hash.'|'.$expire.'|'.sha1($salt.$form_password_hash.forum_hash($expire, $salt))), $expire);

what i'm doing wrong?