<? print_string("configlongtimenosee") ?>
</TD>
</TR>
+<TR VALIGN=TOP>
+ <TD ALIGN=RIGHT><P>sessiontimeout:</TD>
+ <TD>
+ <? unset($options);
+ $options[14400] = get_string("numhours", "", 4);
+ $options[10800] = get_string("numhours", "", 3);
+ $options[7200] = get_string("numhours", "", 2);
+ $options[5400] = get_string("numhours", "", "1.5");
+ $options[3600] = get_string("numminutes", "", 60);
+ $options[2700] = get_string("numminutes", "", 45);
+ $options[1800] = get_string("numminutes", "", 30);
+ $options[900] = get_string("numminutes", "", 15);
+ $options[300] = get_string("numminutes", "", 5);
+
+ choose_from_menu ($options, "sessiontimeout", $config->sessiontimeout, "", "", "");
+ ?>
+ </TD>
+ <TD>
+ <? print_string("configsessiontimeout") ?>
+ </TD>
+</TR>
<TR VALIGN=TOP>
<TD ALIGN=RIGHT><P>zip:</TD>
<TD>
$string['configlongtimenosee'] = "If students haven't logged in for a very long time, then they are automatically unsubscribed from courses. This parameter specifies that time limit.";
$string['configmaxeditingtime'] = "This specifies the amount of time people have to re-edit forum postings, journal feedback etc. Usually 30 minutes is a good value.";
$string['configproxyhost'] = "If this <B>server</B> needs to use a proxy computer (eg a firewall) to access the Internet, then provide the proxy hostname and port here. Otherwise leave it blank.";
+$string['configsessiontimeout'] = "If people logged in to this site are idle for a long time (without loading pages) then they are automatically logged out (their session is ended). This variable specifies how long this time should be.";
$string['configslasharguments'] = "Files (images, uploads etc) are provided via a script using 'slash arguments' (the second option here). This method allows files to be more easily cached in web browsers, proxy servers etc. Unfortunately, some PHP servers don't allow this method, so if you have trouble viewing uploaded files or images (eg user pictures), set this variable to the first option";
$string['configsmtphosts'] = "Give the full name of one or more local SMTP servers that Moodle should use to send mail (eg 'mail.a.com' or 'mail.a.com;mail.b.com'). If you leave it blank, Moodle will use the PHP default method of sending mail.";
$string['configsmtpuser'] = "If you have specified an SMTP server above, and the server requires authentication, then enter the username and password here.";
$string['now'] = "now";
$string['numberweeks'] = "Number of weeks/topics";
$string['numdays'] = "\$a days";
+$string['numhours'] = "\$a hours";
$string['numminutes'] = "\$a minutes";
$string['numviews'] = "\$a views";
$string['numweeks'] = "\$a weeks";
"country" => "",
"prefix" => "",
"guestloginbutton" => 1,
+ "sessiontimeout" => 7200,
"debug" => 7
);
}
+/// Set session timeouts
+ if (!empty($CFG->sessiontimeout)) {
+ ini_set("session.gc_maxlifetime", $CFG->sessiontimeout);
+ }
+
+
/// Location of standard files
$CFG->wordlist = "$CFG->libdir/wordlist.txt";