Topic-icon Keep refreshing on Registration Page

Active Subscriptions:

None
11 years 9 months ago #24963 by Morpheus
Hi Alex,
I created a new fresh test site install out of my original web site (.../site2/) and the behavior as I described it remains exactly the same.
Needless to say I tried several browsers, several PCs and several Facebook accounts (none by the way are administrators).
When I open a new browser and open Facebook - Im connected. even if I open my web site now the auto login does NOT work and I have to click on the Login button.
Starting from this point I can close either Facebook tab/ my web site tab/ both tabs, (but NOT the browser), and when I open My web site - Im auto connected.
But when I close the browser and open it again - Im not auto connected to my web site.

I think this is a new lead: Maybe the session is being erased when browser is closed, but remain alive when only the tabs are closed?

Another idea I can think of the might explain the differences you and I see, is the fact that up until now you weren't a member of my web site. You become one only after I upgraded to new JFB 4.2.3. The accounts Im using already registered to my web site...

Maybe this is the reason?

Please keep on investigating this as I its the main reason for I upgraded to new JFBConnect.
Thanks for your support!
The topic has been locked.
Support Specialist
11 years 9 months ago #24976 by alzander
JFBConnect doesn't treat 'new' users any different than 'old' users, so that shouldn't be related. As for the session, definitely when you close your browser, some cookies will get erased. That will cause them to be recreated when you go to certain websites. That's almost surely related to the problem you're seeing, but I'm simply unsure why it's different for you than me.

Can you try reverting the change on your site back to the authResposneChanged method and let me know when done. I'd like to try to see if I can recreate the inability to logout. That will tell me a lot as if I can't do that, there's definitely some differences. If I can, possibly we'll look into trying to fix that issue instead.

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

None
11 years 9 months ago #24982 by Morpheus
Ok, I returned the original code without the fix.
Tested and I can reproduce the inability to disconnect.
Thanks!
The topic has been locked.
Support Specialist
11 years 9 months ago #24988 by alzander
Thanks. We can reproduce as well on your site. The continuous refresh (or inability to logout) are related to the same issue. We're trying to understand where things are falling apart in Facebook's Javascript library on the few sites that have this issue.

At some point this weekend, we'll be debugging further on your site. We'll need to install a file manager, like extPlorer or OSE Fileman, so that we can make some changes to test. If that's a problem, let me know.

We have a bug-fix release for JFBConnect and JLinked scheduled for next week. We'd love to have a solution to this problem for that release!

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

None
11 years 9 months ago #24990 by Morpheus
Hi Alex,
For your convenient I installed extPlorer on /site/.
Please be VERY careful as you don't change anything outside /site/ as my operational site can be changed as well using extPlorer.

Good luck!
The topic has been locked.
Active Subscriptions:

None
11 years 9 months ago #24998 by wayged
Just to let you know I had the same problem. The logging in was just looping. I had just bought the software, downloaded, and installed a few minutes earlier today. To solve the problem, I just deleted everything. I'll try again Monday.

Also, I couldn't even order your software from my Chrome Browser. Had to switch to Firefox to get it ordered. I clicked the Facebook banner and nothing happened. Your site wouldn't register me as a Facebook user.

Joomla 2.5.6
Template: Rockettheme
The topic has been locked.
Support Specialist
11 years 9 months ago #25003 by alzander
Wayne,
Thanks for letting us know about the issue with Chrome. That's what I use for normal browsing and haven't run into issues, but we'll check our logs to see where something may be going wrong for some users.

As for the redirect loop, after reinstalling and either a) disabling auto registration or b) trying the code fix above, let us know how that goes. We're still drilling down into why it affects a few sites (from support requests, it seems to be less than 5%). That's of course way to high, and we'll do what we can to find the best solution for our bugfix release later this week.

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

None
11 years 9 months ago #25007 by Morpheus
Hi Alex,
Wayne mentioned he is using Rockettheme. I am using it too so I suspected it might related to it.
I tried to change the site's theme to J! default, cleaned cache but it didn't help. I didn't uninstall it though.
Maybe Rockettheme is related to our problem? Just a though...
The topic has been locked.
Support Specialist
11 years 9 months ago #25042 by alzander
Yowser! Alright. We have a solution that should fix the issues above. Basically, Facebook looks to have introduced a (few) bugs recently into it's Javascript API. It's affecting a non-negligible amount of sites in that the 'logging in' event can be triggered on every page load. We use that event for auto-login functionality, but only expect it once, as their documentation states.

We have a workaround that will be in the 4.2.4 release that will be out anywhere from late tonight through Wednesday afternoon, depending on how testing goes. The new method will set a cookie stating if auto-logging in has already occurred and if so, will prevent another auto-login for however long your session is set for. It's not foolproof as the user could be logged back in if they browse your website for a while after they login, but it should be good.

Morpheus, I've implemented the fix on your site. It seems to work, but honestly, you know exactly what you're looking for, so please test. This is with the authResponseChanged code, so it should work as you want. We're still making minor mods to the code, but it will be very similar to what we did for you, so let us know if there are problems!

Thanks for your patience everyone, and hopefully auto-login functionality won't cause issues for you after the 4.2.4 release is out!

Alex
The topic has been locked.
Active Subscriptions:

None
11 years 9 months ago #25053 by Morpheus
Hi Alex, Im happy to hear that.
I will test it later on today and let you know!
One question: is the session time configurable? any idea how long will it last?
The topic has been locked.