DrupalGap icon indicating copy to clipboard operation
DrupalGap copied to clipboard

Users Logged Out of App after Several days

Open mkinnan opened this issue 8 years ago • 5 comments

After a user has logged into the app, the user has to log in again after a few days. My users have complained about this. I'm assuming this is a session time expiring, but can't figure out where. I've updated this setting in my settings.php file for my Drupal site: ini_set('session.gc_maxlifetime', 250000000); but it doesn't change anything for the app. Thoughts?

mkinnan avatar Feb 02 '17 20:02 mkinnan

@mkinnan This one I haven't had to deal with yet, but I understand the symptom. I've heard similar things about just having to set something in settings.php, but haven't had the chance to ever try it yet. If you think you have the right variable, then I'd start digging into Drupal Services in relation to that variable (since all session handling with DG runs through Services).

signalpoint avatar Feb 02 '17 21:02 signalpoint

@signalpoint I've searched for a bit and still can't get any traction on a solution.

I'm not sure what would go in settings.php ...

I checked the variables table in the database and there isn't anything that seems relevant.

I did find this: http://drupal.stackexchange.com/questions/137603/services-3-session-authentication-csrf-validation-with-persistent-log-in

Does that give you any insight? I don't understand enough of how services works.

mkinnan avatar Feb 05 '17 23:02 mkinnan

Users are uninstalling my app because of this issue. I will pay someone to figure out how to fix it for me. It's got to be a simple fix but I've spent months with no progress and have no idea how to debug

mkinnan avatar Feb 25 '17 18:02 mkinnan

I'm going to try the Persistent Login module and see how that goes.

mkinnan avatar Feb 25 '17 18:02 mkinnan

Installed this: https://www.drupal.org/project/session_expire

Set sessions in configuration to never expire.

So far, it's working and users don't have to log in every couple of days.

mkinnan avatar Apr 07 '17 22:04 mkinnan