By Michael on Friday, 28 December 2018
Posted in General
Replies 8
Likes 0
Views 507
Votes 0
Team,

I am sorry but now i am getting really upset about this issue.

I have reported this in the past and I am having to do this over and over.

The ES mobile template app is not respecting the Joomla Session Lifetime parameter (currently 10080). Users are time and time again logged out in a matter of minutes. This only happens with users logged in via mobile so that means this is an ES mobile template app issue.

This is annoying!! People are complaining!!! Can you please please please please look into this once and for all.

What is going on with stack ideas these days, from deleted feeds to erratic mobile template apps! This is not the excellence service I am use to.
There got a few possibility reason why it log user out on mobile :

1. Make sure the user have to tick this option "Keep me logged in" before login, so it will keep the session. (If you would like to make it this "Keep me logged in" checked it by default, I can help you modify the code)

2. If you set `Session Handler` to PHP, you need to know what is the different between 'database' and 'PHP' handler.

By default, Joomla session handler will set it to 'database' handler. I assume you should know when you switch to 'PHP' handler.

The mechanism by which Joomla! identifies a User once they are connected to the web site using non-persistent cookies.

However, if you look for the Joomla description for this `session handler` above, they got mentioned this 'Non-Persistent cookies', what is this mean is Non-Persistent cookies are stored in RAM on the client and are destroyed when the browser is closed.

Currently I am not really sure how the Joomla session PHP handler about this, if based on the description, it sound to me if you closed the browser app for a while, it will clear those user cookies, mean when the user open the browser app again, it needed to login again.

Perhaps you can try it yourself and see whether over 1 day will it still keep you logged in on the site.

By the way, if you still remember i did checked your other issue which is duplicate update avatar stream item last few day, when i open my browser app from my mobile phone, it still appeared my account still logged in on your site, that time i did tick that 'Keep me logged in' option before login.

3. I got encounter one issue, if the user login through the safari browser app (keep me logged in also checked before login), but when they receive an email notification from their default mail app, it will open the browser inside this mail app, so the session doesn't match with the one you open the browser app immediately on your phone, so it will ask you for the login again.

If you login through this mail app inside the browser (Ensure 'Keep me logged in' option checked before login), it will stay the logged in until the session expired.

Keep us update if yourself also can replicate this issue, and share with us step by step how to replicate it and which mobile phone and which browser app use using.

What is going on with stack ideas these days, from deleted feeds to erratic mobile template apps! This is not the excellence service I am use to.

I have a little bit lost here, can you elaborate more details regarding this issue?
·
Friday, 28 December 2018 11:49
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Arlex,

So i changed this from database to PHP to test over 2 days but was still hitting the same issue. That's when i raised this ticket.
I was hitting the same issue with the "database" handler.

In any case, i have changed this back and yes please if you could modify the code to auto select "keep me logged in" that will be fine.

To avoid an alarming number of offline queries, kindly make this modification. If it solves the issues, at least we can breath and assess things.

Please let me know when you have modified it

Thank you very much
·
Friday, 28 December 2018 12:20
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Michael,

I've help you updated these following files from your template override file location, so this "Keep me logged in" checkbox will checked it by default.

/public_html/templates/vanilla/html/com_easysocial/helpers/html/login.php
/public_html/templates/esmobile/html/com_easysocial/helpers/html/login.php
/public_html/templates/establet/html/com_easysocial/helpers/html/login.php


Can you try logout from your user account in your mobile then try re-login again, make sure that checkbox is checked it by default before you login.

Then try monitor again for these few days.

By the way, I will tested this in my mobile phone as well.

PS: Do note, when you switch that session handler setting just now, Joomla will purge all the user session on the site, mean all those user have to re-login again.
·
Friday, 28 December 2018 15:24
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you very much Arlex.

My apologies if I sounded over the edge, I was just quite concerned particularly with the queries that tend to come from our community members offline when things like this happen.

I greatly appreciate this - thanks a million
·
Saturday, 29 December 2018 12:45
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Michael,

The template does not define or interfere with the user's sessions. All it does is to just render information to the browser. Your concern here about the template not respecting the session life time is incorrect as the session life time is being determined by the authentication plugins on Joomla and not the template.

As Arlex had already pointed out that the possibility your users are getting logged out because they did not tick the "Keep me logged in" option. Please update us if your users are still experiencing similar problems.
·
Saturday, 29 December 2018 14:28
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post