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
2 2008-12-15 14:59
Re: punBB 1.3 external login (6 replies, posted in PunBB 1.3 troubleshooting)
so maybe can sombody help me?
3 2008-12-08 08:34
Re: punBB 1.3 external login (6 replies, posted in PunBB 1.3 troubleshooting)
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
4 2008-12-07 16:45
Topic: punBB 1.3 external login (6 replies, posted in PunBB 1.3 troubleshooting)
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?