logout.php redirect problem

I set $_page_cont[$_ni]['url_relocate'] to a custom URL. No matter what I set it to, the logout page always redirects to the home page.

I did flush all the cache though.

Any thoughts?

Quote · 9 Jul 2010

I just tested on my site and tried this.

With full url.
$_page_cont[$_ni]['url_relocate'] = $site['url'] . 'm/photos/home/';


Without full url.
$_page_cont[$_ni]['url_relocate'] = 'm/photos/home/';


Both redirected to my photos page without problem. So i have no idea why it does not work for you.

https://www.deanbassett.com
Quote · 9 Jul 2010

It's weird. It works for a while and then stopped working.

Quote · 9 Jul 2010

It's really weird.

It works when I manually open the URL (e.g. http://blah.ext/dolphin/logout.php), but always brings me to $site['url'] if it's access through clicking the logout links.

Quote · 10 Jul 2010

Found the problem. It's the redirect URL in your fb connect line 296. I don't think it's a bug. :-)

I just tested on my site and tried this.

With full url.
$_page_cont[$_ni]['url_relocate'] = $site['url'] . 'm/photos/home/';


Without full url.
$_page_cont[$_ni]['url_relocate'] = 'm/photos/home/';


Both redirected to my photos page without problem. So i have no idea why it does not work for you.

Quote · 10 Jul 2010

Ah. Well i have that installed of course, but i did not test while logged into facebook.

You will need to show me the line you state is the problem and what file it's in. Line numbers keep changing for each version as i work on them.

There are not any redirects during logout except to log out of facebook itself so that might be the cause, but i would like more information on what your looking at so i can try and verify it.

https://www.deanbassett.com
Quote · 10 Jul 2010

Oh and if my mod is the cause, then this is really not a dolphin bug, so we are in the wrong forum with this.

https://www.deanbassett.com
Quote · 10 Jul 2010

I agree. Of course I didn't know it would have anything to do with FB connect, as the persistent exit link affected all accounts, not just those with FB connect.

Anyway, it's BxFaceBookConnectModule.php.


$logoutUrl = 'https://www.facebook.com/logout.php?api_key=' . getParam('dbcs_facebook_connect_api_key') . '&next=' . BX_DOL_URL_ROOT  . '&sessi alt=' . $session['session_key'];

Maybe BoonEx should add another constant for the exit link in header.inc.php.

Quote · 10 Jul 2010

That logout url is just a setting. It's actually gets stored in the database later in the code and is not called until a logout event is fired in BxFacebookConnectEvents.php where the redirect to facebook is actually performed.

I have been reworking this logout code for days now. My code actually logs out of facebook. The boonex version fails to do it.

I'll keep working on that logout section. I will get it working properly eventually.

https://www.deanbassett.com
Quote · 10 Jul 2010

I believe i may have finally found the problem. New version released.

Any further problems, please use the forum here. http://www.boonex.com/unity/forums/#topic/Deanos-Facebook-Connect-Support.htm

https://www.deanbassett.com
Quote · 10 Jul 2010

Sure thing, if I knew they were related. :-P

Quote · 10 Jul 2010
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.