PDA

View Full Version : VbConnecter API Cookies Problem


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);

Marco van Herwaarden
08-04-2010, 04:47 AM
If you have problems with a modification, then please post in the thread of that modification.

PS I have the feeling that you are trying to use a 3.5 modification on 4.0, this might not work.

kusmendra
08-04-2010, 06:04 AM
No we are not making any modification, we already using vBulletin version 4.0.3.

we just want to use vBconnector API for creating Login, Logout functionality on our main site.

I just need that vBulletin session and our site session will be same.