Logins, Sessions, and Tokens

Logins, Sessions, and Tokens

by Jeremy Hatfield -
Number of replies: 1

Hi Community,

I have a few questions concerning Users logging into the Mobile app. 

1. How long before the User has to login in again? It seems the login lasts a few days.

2. Are logins handled by Sessions or Tokens? Both? (Not sure what I'll do with this answer, but just curious.)

3. Is there a way to extend the amount of time before the login expires?

All of these questions come from the fact that our Users need the offline capability of playing SCORM packages. The Users spend days and weeks in other countries without internet access, so we download the SCORM packages before they leave. However, I need to make sure they are not prompted to re-login after they have left and no longer have internet, thus locked out of the downloaded courses.

Hope this makes sense. Thanks All!

Average of ratings: -
In reply to Jeremy Hatfield

Re: Logins, Sessions, and Tokens

by Juan Leyva -
Picture of Core developers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers

Hi,

1. Tokens are valid during 3 months, but if the user is offline it should be valid until it reconnects and is asked again to enter his credentials.

2. Tokens

3. You can modify login/token.php (the 3 months value is hardcoded there)

If they access and download the scorms for offline usage, they should be fine and able to play them offline.

Regards, Juan