Login problems on mobile devices

Login problems on mobile devices

My users are experiencing login problems using Facebook on mobile device, doing login the page doesn't change probably because the devices still shows the cached page.
Are there any way to force the cache reload on login?
Any other tips?
thx

evil
useravatar
Offline
192 Posts
Active Subscriptions:

None
Administrator has disabled public posting. Please login or register in order to proceed.

Re: Login problems on mobile devices

What kind of caching do you have enabled? If you're using browser caching, you shouldn't be. Various extensions, templates or the System - Page Cache plugin that comes with Joomla can enable this. Browser caching should not be used on any site where authentication is performed.

If that doesn't help, do you see the same issue if the use logs in with Joomla credentials as well, or is this just with social authentication?

Thanks,
Melissa

Want to stay up-to-date on new releases and development efforts?
Follow us on Twitter @sourcecoast and @mandreae

mel
Melissa
useravatar
Offline
3917 Posts
Website 
Support Specialist
Administrator has disabled public posting. Please login or register in order to proceed.

Re: Login problems on mobile devices

Hi Melissa,
We are using joomla conservative cache.

There's no redirection after login, but the user should see the same page with the content available for registered users.

This is working on desktop pc and on some mobile device but in many other cases (and we were able to replicate) this is not happening and the page still shows the "login with facebook" button as the user was not able to login. If you refresh the page the login button disappear and the user can see he is logged properly.

Of course this behaviour generate a huge misunderstanding because users try to login over and over again and they are not able to access registed user functions.

evil
useravatar
Offline
192 Posts
Active Subscriptions:

None
Administrator has disabled public posting. Please login or register in order to proceed.

Re: Login problems on mobile devices

Your site absolutely has some sort of browser caching enabled. If you go to the site and click the refresh button in a browser, a 304 response code is being returned:
https://www.sourcecoast.com/images/agorapro/attachments/64/mini_evil-304-headers.png

A 304 code tells the browser that it should load it's previously cached HTML for the current URL. So, even if a user has just authenticated, the non-authenticated HTML will be displayed by the browser. We can't fix that in JFBConnect. Conservative caching in Joomla will *not* return 304 headers. You must be using something else, either from a Joomla extension (like the Joomla - Page Cache plugin) or in your server itself (nginx looks to be your server software, which can implement browser caching on it's own).

I hope that helps narrow things down, but if you get the 304 response codes removed and still have issues, just let us know.

Thanks,
Alex

If you use our extensions, please consider leaving a rating and review at the Joomla! Extension Directory:
JFBConnect | SCLogin

alzander
Alex
useravatar
Offline
24604 Posts
Support Specialist
Administrator has disabled public posting. Please login or register in order to proceed.

Re: Login problems on mobile devices

Our server use nginx, the cache of .php is disabled.
I think that FB on successfull login redirect to the page friendly url (friendly url is cached), if your plugin could pass as return uri the real page url may be the problem will be solved.
What do you think about?

evil
useravatar
Offline
192 Posts
Active Subscriptions:

None
Administrator has disabled public posting. Please login or register in order to proceed.

Re: Login problems on mobile devices

It's not caching of PHP files that's the problem. It's the directive to tell browsers to cache the content and respond with 304 codes telling the browser to use that cached data. That's different than optimizing and caching the execution of PHP files.

The issue will present itself on various pages, regardless of where they are redirected. For instance, if the user comes to your home page and navigates through 4 different pages.. then decides to log in, all the pages the user has already viewed will still be shown as if they aren't logged in. Feel free to try yourself and see the behavior.

You cannot use browser caching on sites that allow authentication *and* change the content of pages based on if the user is logged in or not. That's simply a fact of browser caching and we can't do anything about it.

I hope that helps explain. There is nothing in JFBConnect that can be done to get around this.

Alex

If you use our extensions, please consider leaving a rating and review at the Joomla! Extension Directory:
JFBConnect | SCLogin

alzander
Alex
useravatar
Offline
24604 Posts
Support Specialist
Administrator has disabled public posting. Please login or register in order to proceed.

Re: Login problems on mobile devices

Hello Alex.
My users are experiencing issues on mobile devices when they try to login. Not everybody, seems link this error is only on specific devices. Could you give me some ideas where to look for. You could try going on aspect ratio calculator webpage and try to login from there. On that page I received feedback from my users. Thank you!
Have a great day!

Edited by: andreea24 - Mar-31-15 04:02:11
andreea24
useravatar
Offline
1 Posts
Active Subscriptions:

None
Administrator has disabled public posting. Please login or register in order to proceed.

Re: Login problems on mobile devices

Andreea24 ,

Please create a separate thread for your issue. This thread is dealing with login via Facebook or other social networks. Since I don't see a subscription associated with your account, I'm assuming that your issue is with logging in via the SCLogin module. In general, you will also need to provide more details, as reproducing your issue is impossible without more specific details on which URLs, which mobile devices you are using, the problem behavior and any error messages that you are seeing.

-Melissa

Want to stay up-to-date on new releases and development efforts?
Follow us on Twitter @sourcecoast and @mandreae

mel
Melissa
useravatar
Offline
3917 Posts
Website 
Support Specialist
Administrator has disabled public posting. Please login or register in order to proceed.
There are 0 guests also viewing this topic
There are 0 users also viewing this topic

Board Info

Board Stats
 
Total Topics:
12019
Total Polls:
0
Total Posts:
50408
Posts this week:
30
User Info
 
Total Users:
48977
Newest User:
anindynasywa
Members Online:
0
Guests Online:
777

Online: 
There are no members online
Social Stream
Hide, Seek & Defuse

Handheld Electronic Game

Alex from SourceCoast is working on a new electronic game for kids called Countdown. It's a timed game of Hide & Seek with mini-games (Whack-a-Mole, Simon, etc) to complete when you find it.

Hide and Seek Toys

Before You Leave

Let us send you a 10% off coupon

For Your Next Purchase

Please enable the javascript to submit this form

No , I don't want a discount