Topic-icon reload page after login with sclogin ?

Active Subscriptions:

None
13 years 12 hours ago #33721 by jacjak
Hi,

I use sclogin with jfbconnect. Due to use of template cache + joomla cache sometimes the page is not redrawed after login and I need to refresf page on the browser to get correct result.

I could not find a cache specification on SClogin module.

Is it possible to fire a refresh event (reload page) after login ?

Thanks
Jack
The topic has been locked.
Support Specialist
13 years 7 hours ago #33725 by alzander
Jack,
I've not heard of that issue before. The SCLogin module calls some code out of JFBConnect for performing the login. The whole login process is initiated through Javascript and the last step is to redirect the user to:
index.php?option=com_jfbconnect&task=loginFacebookUser

That step is required and it should cause the page to refresh. Server side caching shouldn't prevent that at all and neither should browser caching.

In short, I'm not sure why the page wouldn't refresh. Can you help answer a few questions so I can narrow things down further:
* If you disable caching on your server, does the issue go away?
* When you refresh, are you logged in already *or* does the page reload itself again? If you have the "Show 'Logging in' Popup" setting enabled, when does that popup appear (when you click the Login with Facebook button or when you refresh)?

With the answers above, we should be able to help you get to the bottom of things.

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

None
12 years 11 months ago #33769 by jacjak
Alex,
Title
Yes, when I template cache is disabled all is ok
Yes, when template cache is on and when I do a refresh (F5) from browser all is ok
I don't use sclogin popup mode

The preprod site is now cache off
The topic has been locked.
Support Specialist
12 years 11 months ago #33800 by alzander
What template are you using? I'm not sure why the template cache wouldn't clear itself when the user logs in, but it may be something you need to contact your template provider about.

JFBConnect simply logs the user in and tells Joomla there is a logged in user. The template cache should detect the user and no longer use it's cached pages. I don't know how we'd prevent that in JFBConnect as it seems like a bug in the template cache.

I don't think that issue happens with normal Joomla caching. Until we understand more about what the template is doing, I'd suggest leaving Joomla cache enabled, but disabling the template's extra caching.

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

None
12 years 11 months ago #33821 by jacjak
Yes, This is what I do : template cache disabled and joomla cache enabled.

The template is ja_puresite from Joomlart


Thanks
Jacques
The topic has been locked.
Support Specialist
12 years 11 months ago #33828 by alzander
Jacques,
Have you contacted JoomlArt about what may be happening with their template cache? If you need the caching enabled, they may need to be the ones to help understand what's going wrong as it's not detecting when the user is logged in.

Keep us posted on anything you find or any more help we may be able to provide, but diagnosing their caching system would be difficult since we didn't design it or know how it works.

Thanks,
Alex
The topic has been locked.