Topic-icon JFBConnect Facebook need to reauthenticate every page refresh

Active Subscriptions:

None
On a site of a client of ours, we installed JFBConnect (version 6.5.3) and configured it correctly and allow visitors to login with Facebook or LinkedIn. It worked great until a few days ago, every page review visitors need reauthenticate with Facebook to make relogin.

I've done a bit of research on this topic and what I found was that for some reason, JFBConnect set a cookie called jfbconnect_autologin_disable with a value of 1, but in the settings I have enabled autologin for Facebook (see screenshots below). My guess is, that this is what causing the issue but any other suggestions are welcome as well ;)

If you need any additional info; I will happily provide that.

Screenshots:
File Attachment:


File Attachment:
The topic has been locked.
Active Subscriptions:

None
It might be someone wrong with the connection in Facebook in general. I have been scratching my head because my Facebook Like and Share was working properly. I checked all the settings and they appear to be activated but it is not showing at the end of my blogs. However, Linkedin, Twitter and Google are working. I am now looking at Suncoast's widget below and it is also missing Facebook.

Support can you please advise on what to do?

Regards, Eli
The topic has been locked.
Support Specialist
praes,
The jfbconnect_autologin_disable is unrelated. That cookie notifies JFBConnect that a user has intentionally logged out of the site (clicked the Logout button) so that on the next page load JFBConnect *won't* try to auto-log the user in. Without that cookie, a user wouldn't be able to logout intentionally as they'd be immediately logged back in.

The issue you describe is usually caused by aggressive caching been enabled on the site. If you are using Page Caching (the System - Cache or System - Page Cache) plugin, or other 3rd party caching extensions, they can cache the HTML for a page for a guest and then re-render that page for a logged in user.

Can you try disabling any caching you have enabled *temporarily* just to see if that fixes the issues.

Beyond that, you stated:

every page review visitors need reauthenticate with Facebook to make relogin.

Just to make sure I'm understanding... a user logs in on page 'A' using Facebook. If they navigate to page 'B', it shows them as not logged in? On page 'B', you need to hit Facebook login button to show them as logged in.

If that's correct, another thing to try is, on page 'B', instead of hitting the Facebook login button, just hit Refresh in the browser to see if that properly shows the user logged in.

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

None

alzander wrote: praes,
The jfbconnect_autologin_disable is unrelated. That cookie notifies JFBConnect that a user has intentionally logged out of the site (clicked the Logout button) so that on the next page load JFBConnect *won't* try to auto-log the user in. Without that cookie, a user wouldn't be able to logout intentionally as they'd be immediately logged back in.

The issue you describe is usually caused by aggressive caching been enabled on the site. If you are using Page Caching (the System - Cache or System - Page Cache) plugin, or other 3rd party caching extensions, they can cache the HTML for a page for a guest and then re-render that page for a logged in user.

Can you try disabling any caching you have enabled *temporarily* just to see if that fixes the issues.

Beyond that, you stated:

every page review visitors need reauthenticate with Facebook to make relogin.

Just to make sure I'm understanding... a user logs in on page 'A' using Facebook. If they navigate to page 'B', it shows them as not logged in? On page 'B', you need to hit Facebook login button to show them as logged in.

If that's correct, another thing to try is, on page 'B', instead of hitting the Facebook login button, just hit Refresh in the browser to see if that properly shows the user logged in.

Thanks,
Alex


Hi Alex,

Thanks for your reply! Yes you understanding it correctly, on page 'B' suddenly the user isn't logged in via Facebook anymore. Refreshing doesn't seem to help, clearing cache and disabling cache doesn't help either.
The topic has been locked.
Support Specialist
Can you tell me how I can try to login to your site with standard Joomla credentials? I'd like to try that way to do some tests, but when I go to index.php?option=com_users&view=login , I'm redirected to the home page.

I've never seen a problem like this, but I don't think it's a JFBConnect related issue. If you look at the cookies on your site, there's always a pairing that looks like 2 random strings of characters, like:
name= 7b8bf7df4b9b4b6f59a1e3dc495c05d3
value= hqhabnqdv2dobeda0bm53ejl83
That cookie (the name and value will be different) is what identifies the user browsing within your system. It's the 'session' cookie that's vital to Joomla. It also should not change at all while the user is navigating the site. However, on your site, the value is changing on every new page that is visited. Because of that, Joomla doesn't know that the current viewer is the one that just logged in with a social network, and that's why it looks like you're logged out.

Testing with a standard Joomla account will help verify if this is indeed the issue. Unfortunately, I have no idea what would be causing it, but narrowing it down is the first step.

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

None
Alex,

Thank you for your last response.
I am sorry for my delayed reaction. We had some busy weeks.

The problem still persists, a private messaged has been sent with credentials.
Hope you can narrow it down this way.

Hope to hear from you soon.

Dear regards,

Praes
The topic has been locked.
Support Specialist
Praes,
Thanks for the admin credentials. Looking at the admin area, I'm still unsure what's going on. Can you help me understand some things:
* When I authenticated in the admin area, I was forced to change my password. What are you using to force password changes? Can you disable it to see if that fixes the issue?
* When I go to index.php?option=com_users&view=login, I'm redirected back to the home page. What is causing that redirect? Can you disable it and see if that fixes the issue?
* If you can access index.php?option=com_users&view=login and try to login, are you still logged out as you navigate around?

Let us know and we'll try to help however we can.

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

None
Dear Alzander,

Thank you for your reply.

1. I enabled it to change the password to your own password when you login for the first time.
2. I enabled it since where redirecting this page but after i deleted the redirect and tryed login in it worked. But then i visit another page and im not loged in anymore.
3. Still logged out. When i go to the login page and login im logged in. But once i go to a new page i am logged out.

I hope you have the time to help me once more.

Dear regards,

Praes
The topic has been locked.
Support Specialist

1. I enabled it to change the password to your own password when you login for the first time.

How did you enable that? I'm not familiar with that setting in Joomla. Are you using a 3rd party extension? If so, please try disabling it and testing authentication without it.

2. I enabled it since where redirecting this page but after i deleted the redirect and tryed login in it worked. But then i visit another page and im not loged in anymore.
3. Still logged out. When i go to the login page and login im logged in. But once i go to a new page i am logged out.

This sounds like a caching issue or some other underlying Joomla issue. If you have caching enabled, please disable it. Beyond that, does the behavior you describe happen when you login with a social account through JFBConnect or standard Joomla credentials (or both)?

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

None
1. It is a joomla core feature. You can select a checkbox when you make a new user account.
2. Disabled the caching functions but this the same problem occured.
3. For both JFBconnect and standard joomla login.

Also tryed accessing different pages and then logging in but always the same problem.

Hope you have some other ideas.

Thanks in advance,

Praes
The topic has been locked.