× Joomla Facebook Connect support forum

Topic-icon login/logout

Active Subscriptions:

None
14 years 1 month ago #21896 by fb_100000532508192
Hi,

i have experiencing for a while now a problem where if i login to my site via facebook. then open another tab and open the facebook.com url, i will then be looking at my facebook account etc and be logged in etc...

Now above is normal and expected. tab1(mysite logged-in),tab2(facebook,logged-in).

Now if i logout of tab2(fb) and then login as a different user in tab2(fb). then go back to tab1 and click around a few pages etc. the profile picture is updated with the new fb logged-in person. in other words my website gets confused and mixes profiles from 2 diffrent facebook users.

Another problem is that once this has occured if i say logout from tab2(fb) and then login with the matching user as tab1(site). tab1(site) will ask me to login with a user which is alreadly logged-in.

So i then have to delete the user via joomla and then create a new account.

i think jfb needs to actively listen as to weather fb is still logged in, from any other tab in the browser. when it detects a logout from any tab then it will auto logout of jfb site as well. Because 2 fb sessions cannot co-exist within a single browser at the same time.

i hope what i ahve put makes sense lol.

Many thanks in advanced
The topic has been locked.
Support Specialist
14 years 1 month ago #21916 by alzander
Replied by alzander on topic login/logout
Phil,
I understand what your saying. There are a few things to note.. some which may be bugs, others which sound like something else..
When you logout of FB and login with a new user, if you navigate your site, the "mapping" between Facebook and your Joomla account should not be updated at all. This would be a huge security problem if so, so please check in the User Map area of JFBConnect if the joomla user and Facebook user mapping row is correct.

The above is regardless of the avatar that is showing. That could be related, but don't use the displayed avatar as information on what user is mapped.

Another thing that could possibly causing the problem is if you have a mixed domain site. Specifically, if you go to www.site.com and click around.. does your URL ever update to "site.com" (non-www)? If so, then there would be cookies for the both user's Facebook accounts placed on both domains. While there shouldn't be an update to the mapping, it could explain things a bit more. Mainly, if this is the case, then my guess is that user a is logged into www.site.com and user b would be logged into site.com (non-www).

Hope what I said makes sense. Mainly, focus on the user-mapping column for now. You really shouldn't ever have to delete users from your system due to JFBConnect's connection of them to their Facebook account.. if so, something is definitely wrong.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
14 years 4 weeks ago #22486 by fb_100000532508192
Replied by fb_100000532508192 on topic login/logout
Hi Alex,

I think the mixed domains was the issue which i have resloved. Thanks again.

Phil
The topic has been locked.
Support Specialist
14 years 4 weeks ago #22519 by alzander
Replied by alzander on topic login/logout
Awesome! Glad to hear you think it's going. Of course, if you still run into issues, or have any questions, just let us know!

Thanks,
Alex
The topic has been locked.