Topic-icon Facebook login - Page NOT Refreshing

Active Subscriptions:

None
12 years 3 months ago #41115 by imnlimited
Hi,

It seems that when a user tries to login to the site with their Social Credentials (Social Buttons), they get logged in, but the page does not refresh.

Only when you click refresh on the browser then only it shows them as logged in.

I have seen many mentions of this on the forum, but not clear what the fix is and why there are so many users having issues with it....

Can you please help urgently?

Thanks,

Andrew
File Attachment:
The topic has been locked.
Support Specialist
12 years 3 months ago #41121 by alzander
It looks like you have some heavy caching enabled on your site, which is caching responses to requests and using those incorrectly. There's a few different redirects I'm seeing during the login process and general navigation of the site that don't look correct.

What I'd recommend doing is:
* Disable caching the Global Configuration area of Joomla.
* Disable the caching being performed by your template
* Disable the System - Cache plugin

Test with all of those disabled and see if things work normally. Then, re-enable those features one-by-one starting from the top and test after each one. See when things start to break again.

I hope that helps you narrow things down, but if you have any questions or run into any issues, just let me know.

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

None
12 years 3 months ago #41183 by imnlimited
Hi Alex,

Okay, I followed your instructions.

What I found was that it has to do with JotCache, when I disable JotCache Plugin then it works fine. As soon as I re-enable it again, we have to refresh the page after logging in to the site before it shows the user as logged in.

Now, could we add an exclusion to JotCache Plugin Config? (kbase.jotcomponents.net/jotcache:help:v40:exclusion)

Do you think that is what we need to do to fix this issue? It is a little strange that it is causing it.

Look forward to your urgent reply....

Thanks
The topic has been locked.
Support Specialist
12 years 3 months ago #41194 by alzander
I honestly don't know anything about JotCache. The page you linked to is not something I directly understand without ever having seen the component. Since JFBConnect isn't the page being landed on (it's a JomSocial page), I'm not sure if excluding JFBConnect would be the right course or excluding JomSocial. It may be something you need to ask their developers for assistance with, because I really don't know what they are doing that's preventing the loading of the page properly.

I do know that if you are using the Browser Caching feature of the standard System - Cache plugin, a similar issue can happen. If JotCache is using browser caching, that may be the problem as browser caching tells the browser to load whatever is in it's cache when you go to a URL. So, if you are on the JomSocial home page, you log in and are immediately returned to the JomSocial home page, the browser would load the original (non-logged in) copy. Refreshing would tell the browser to go fetch an update.

There's not much we can do about that, if that's the problem.

I hope that helps,
Alex
The topic has been locked.
Active Subscriptions:

None
12 years 3 months ago #41198 by imnlimited
Alex....

sorry, but it unfortunately does not happen only on JomSocial page but on all pages where we use SC_Login or JFBConnect.

Browser caching is not used at all yet, we have not enabled that yet.


I would really appreciate it if you could help us resolve this issue.


Thanks,


Andrew
The topic has been locked.
Support Specialist
12 years 3 months ago #41213 by alzander
I'm not really sure what we can do to fix it though. JotCache is performing the caching, and would be where the fix needs to be made. From the link you posted above, there is a way to exclude extensions. I'd recommend excluding com_jfbconnect from any caching in JotCache to see if that helps. If it doesn't though, I'm not sure what's going wrong as I'm not sure what kind of caching they're doing. It would have be something you get some feedback from their developers on to determine why the login function within Joomla that we're calling isn't properly re-rendering the page.

I hope that explains. There's not a switch in JFBConnect to set component-wide caching, and we have no specific integration with JotCache. I do know that other user's are successfully using JotCache on their site. We've never (or at least I can't think of any reports in the last 6+ months) heard issues with JotCache and so I don't have a clear answer as to what may be different with your configuration.

If you do get a solution from the JotCache developers or the exclusion of jfbconnect works in their configuration, let us know. We'd love to have that information if anyone else runs into a similar issue.

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

None
12 years 3 months ago #41217 by imnlimited
Alex,

It would be great if we could find out if someone who is using JFBConnect, SC-Login together with JotCache has got theirs configured.

I would really appreciate it.... If it works fine for other users, then there has got to be a solution....

Thanks,


Andrew
The topic has been locked.
Support Specialist
12 years 3 months ago #41231 by alzander
I'm sure there is a solution, but we don't have a specific list of what extensions user's have on their sites. Doing a search of our forums, I found a few posts below where user's mentioned their sites were using JotCache, and the first (though it's a year old) actually mentions how they got his site to work with lots of different extensions:
www.sourcecoast.com/forums/jfbconnect/jf...nd-virtuemart#p29459
www.sourcecoast.com/forums/non-commercia...o-random-page#p39635

I hope that helps,
Alex
The topic has been locked.