kusmendra
08-02-2010, 08:07 PM
I m using Version 4.0.3 and used VbConnecter API for manage user management section from outside the forum,
there is two folder in zip file, first one is "Connector" and another is "Example". i copied "Connector" folder in forum root and then used example files in our main site.
when i log in through forum all functions working fine (like. get user info, log in status etc.. ) in my main site, But my problem is that when i log out (through forum default logout function OR my customize log out function in main site). I got error "Unable to add cookies, header already sent." Don't know why... :(
I think we have problem here
// build the session and setup the environment
$this->session =& new vB_Session($this, $sessionhash, $this->GPC[COOKIE_PREFIX . 'userid'], $this->GPC[COOKIE_PREFIX . 'password'], 0, 0);
there is two folder in zip file, first one is "Connector" and another is "Example". i copied "Connector" folder in forum root and then used example files in our main site.
when i log in through forum all functions working fine (like. get user info, log in status etc.. ) in my main site, But my problem is that when i log out (through forum default logout function OR my customize log out function in main site). I got error "Unable to add cookies, header already sent." Don't know why... :(
I think we have problem here
// build the session and setup the environment
$this->session =& new vB_Session($this, $sessionhash, $this->GPC[COOKIE_PREFIX . 'userid'], $this->GPC[COOKIE_PREFIX . 'password'], 0, 0);