Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-34498

Session Timeout alert

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide

      Edit the config file so it has:

      $CFG->sessiontimeout = 60;

       

      Go to the login page (don't login yet!).

      Wait more than 60 seconds. Verify the page does not reload and no alerts are shown.

       

      Login and go to a course home page.

      Wait about 50 seconds, Verify you see an alert warning you

      No recent activity

      Your session is about to timeout. Do you want to extend your current session?
       
      Click "Cancel".

      Wait another 10 seconds

      Verify you see an alert saying:

      Session expired

      Your session has timed out. Please log in again.
       
       
      Press OK and verify the page is not reloaded - this gives you a chance to copy and data you haven't saved yet.
       
      Login again as a teacher,
      Make a scorm activity.
      Enter the scorm activity.
       
      Wait more than 60 seconds.
      Verify the scorm can still be finished (the session was kept alive). 
       
      Enter the scorm again.

      Add "sleep(11);" in config.php

       

      Verify after a while you see a warning about :

       
      The SCORM player has determined that your Internet connection is unreliable or has been interrupted. If you continue in this SCORM activity, your progress may not be saved.
      You should exit the activity now, and return when you have a dependable Internet connection.
       
      Take "sleep(11);" out of config.php
       
      Create an assignment with a marking guide. 
       
      On the "Define marking guide" page, wait 2 minutes.
       
      Verify you can save the marking guide. 

       

       

      Show
      Edit the config file so it has: $CFG->sessiontimeout = 60;   Go to the login page (don't login yet!). Wait more than 60 seconds. Verify the page does not reload and no alerts are shown.   Login and go to a course home page. Wait about 50 seconds, Verify you see an alert warning you No recent activity Your session is about to timeout. Do you want to extend your current session?   Click "Cancel". Wait another 10 seconds Verify you see an alert saying: Session expired Your session has timed out. Please log in again.     Press OK and verify the page is not reloaded - this gives you a chance to copy and data you haven't saved yet.   Login again as a teacher, Make a scorm activity. Enter the scorm activity.   Wait more than 60 seconds. Verify the scorm can still be finished (the session was kept alive).    Enter the scorm again. Add "sleep(11);" in config.php   Verify after a while you see a warning about :   The SCORM player has determined that your Internet connection is unreliable or has been interrupted. If you continue in this SCORM activity, your progress may not be saved. You should exit the activity now, and return when you have a dependable Internet connection.   Take "sleep(11);" out of config.php   Create an assignment with a marking guide.    On the "Define marking guide" page, wait 2 minutes.   Verify you can save the marking guide.     
    • Pull from Repository:
    • Pull Master Branch:
      MDL-34498-master

      Description

      This is a new feature to give a notification to users when their session is about to expire. This is to avoid the problem where users have a page open for hours, typing an assignment submission, quiz answer or forum post, and then hit 'Submit', only to be told their session has expired, which loses their work.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                23 Vote for this issue
                Watchers:
                22 Start watching this issue

                Dates

                • Created:
                  Updated: