Topic-icon very slow login

Active Subscriptions:

None
11 years 7 months ago #48215 by evil
very slow login was created by evil
Hello,
we just switched our Platform to j3.5 but i noticed two problems with jfb:

1) the login is really slow now.
2) the autologin is not working.

you can check the issue on eventinapoli.com

to login click on "accedi" on the left of the broswer
The topic has been locked.
Support Specialist
11 years 7 months ago #48222 by alzander
Replied by alzander on topic very slow login
I'm not sure what you updated. Joomla 3.5 isn't available. The latest release is 3.3.6. Is that what you upgraded too? If so, can you tell me what you upgraded from?

As for sluggishness during login, I'd suggest the following:
* In the JFBConnect -> Configuration area, make sure Caching is enabled and set to a value like 15 or more
* Disable any social profile plugins that you don't need enabled for importing data into 3rd party extensions
* With the remaining social profiles, go to the JFBConnect -> Profiles area and try disabling avatar and cover photo import (if present) to see if that speeds the process up

Hopefully, that helps get you going, but if not, let me know.

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

None
11 years 7 months ago #48598 by evil
Replied by evil on topic very slow login
ok thank you i will try soon, i'm checking if i need com builder or if i can deal without it.

if jfb connect would support custom fields during the registration i could get rid of CB builder :-D
The topic has been locked.
Active Subscriptions:

None
11 years 6 months ago - 11 years 6 months ago #49138 by evil
Replied by evil on topic very slow login
Hi Alex,
Here are the answers in bold:

* In the JFBConnect -> Configuration area, make sure Caching is enabled and set to a value like 15 or more (i set to 120 minutes even if i wish it could be possible to set one month. is it possible? any reason to have this value so short? on previous JFB version i had the possibility to keep the user logged in until they cleaned their cookies or logged out from facebook, why now the behaviour is different?)
* Disable any social profile plugins that you don't need enabled for importing data into 3rd party extensions (we have installed CB now but we had same problems even when i opened this ticket when we used only joomla).
* With the remaining social profiles, go to the JFBConnect -> Profiles area and try disabling avatar and cover photo import (if present) to see if that speeds the process up (doesn't change anything, the problem occours even with already registered people).

could you please try to login and let me know if this speed is normal? thank you.
Last edit: 11 years 6 months ago by evil.
The topic has been locked.
Support Specialist
11 years 6 months ago #49144 by alzander
Replied by alzander on topic very slow login

(i set to 120 minutes even if i wish i could be possible to set one month. is it possible? any reason to have this value so short?)

Yes, you don't want to set it super long like that because the values cached are things like the user's avatar (which may be updated more often than once a month), the posts in your social stream (which likely gets more posts than once a month), etc.

By having a cache of 2 hours, it will speed up the login process in a few ways:
* The avatar and some other profile data is only downloaded one time, even if you are importing the avatar into multiple extensions
* If the user logs in 2 times over the 2 hours, the 2nd one should be even faster than the first login

As for testing, I just tried and a) the auto-login process worked right away when I visited your page and b) the login took about 3-4 seconds, which was pretty fast. How long of login times are you experiencing?

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

None
11 years 6 months ago - 11 years 6 months ago #49147 by evil
Replied by evil on topic very slow login

alzander wrote:

By having a cache of 2 hours, it will speed up the login process in a few ways:
* The avatar and some other profile data is only downloaded one time, even if you are importing the avatar into multiple extensions
* If the user logs in 2 times over the 2 hours, the 2nd one should be even faster than the first login

great in this case i will keep 120 min.

As for testing, I just tried and a) the auto-login process worked right away when I visited your page and b) the login took about 3-4 seconds, which was pretty fast. How long of login times are you experiencing?

On the previous JFB version the login process didn't prompt the lightbox with the "please wait" message so probably I (and other users too) did not notice it was logging in until the page was refreshed due to the "afterlogin" redirection (even if the setting was "redirect to the same page".

So the lightbox makes the process appear more slow, but in other hands it helps to understand why the page will be reloaded. In the previous version the reload of the page without any message looked like a malfunction.
I was wondering if there is any chance to get a login with Ajax in the future so we could get rid of the lightbox and of the page reload. :)


PS: if i close the browser page and i open it back, i'm logged in again, i tought with 120 min of cache i should be already logged in. am i wrong?
Last edit: 11 years 6 months ago by evil.
The topic has been locked.
Support Specialist
11 years 6 months ago #49149 by alzander
Replied by alzander on topic very slow login
The value you're thinking about is the "Session Timeout", which is set in the Joomla Global Configuration area. The cached values are data that is stored locally so that JFBConnect doesn't have to make additional outgoing requests to different social networks, which is a 'long' process in the scheme of things.

Alex
The topic has been locked.
Support Specialist
11 years 6 months ago #49150 by alzander
Replied by alzander on topic very slow login
Also, when you close your browser, that clears your browser cookies, which are what are used to keep you logged in.
The topic has been locked.
Active Subscriptions:

None
11 years 6 months ago #49152 by evil
Replied by evil on topic very slow login
File Attachment:


This is the setting i had in the previous portal but users did not lose their cookies after closing the website.
They were logged in until they click the logout button. And the session never expirerd.

The login setting were to "keep password saved". So i set now but the behaviour is different.
The topic has been locked.
Support Specialist
11 years 6 months ago #49157 by alzander
Replied by alzander on topic very slow login
In general, if your browser is set to clear cookies on close, what you describe is expected. If your browser can't save a cookie when it's closed, then there would be no way for Joomla to know the user that returns to the site.

As a test, when you login using standard Joomla credentials, do you have the same behavior? If so, that means it's not a JFBConnect specific issue, which is what I'd assume, and there's nothing we'd be able to do about that.

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