]> git.mjollnir.org Git - moodle.git/commitdiff
Added GUI for $CFG->sessioncookiepath
authormoodler <moodler>
Tue, 28 Mar 2006 05:31:21 +0000 (05:31 +0000)
committermoodler <moodler>
Tue, 28 Mar 2006 05:31:21 +0000 (05:31 +0000)
admin/configvars.php
lang/en_utf8/admin.php

index c6a2541f578ebe5da791ba84214d61707d6250ee..720f34eda19be6edd5b636336eef04003635c9c0 100644 (file)
@@ -141,6 +141,8 @@ class configvarrss extends configvar {
 /// sessioncookie
     $operatingsystem['sessioncookie'] = new configvar (get_string('configsessioncookie', 'admin'),
         '<input name="sessioncookie" type="text" size="10" value="'.s($config->sessioncookie).'" alt="sessioncookie" />' );
+    $operatingsystem['sessioncookiepath'] = new configvar (get_string('configsessioncookiepath', 'admin'),
+        '<input name="sessioncookiepath" type="text" size="10" value="'.s($config->sessioncookiepath).'" alt="sessioncookiepath" />' );
 
 /// zip
     $operatingsystem['zip'] = new configvar (get_string('configzip', 'admin'),
index 461517684da2ddc4e7b15c25dd0b77fa2db0e3d7..4d67bf404853a0bdb1dbc97c30c4499b4bbbfbc0 100644 (file)
@@ -104,6 +104,7 @@ $string['configsectionstats'] = 'Statistics';
 $string['configsectionuser'] = 'User';
 $string['configsecureforms'] = 'Moodle can use an additional level of security when accepting data from web forms. If this is enabled, then the browser\'s HTTP_REFERER variable is checked against the current form address.  In a very few cases this can cause problems if the user is using a firewall (eg Zonealarm) configured to strip HTTP_REFERER from their web traffic.  Symptoms are getting \'stuck\' on a form. If your users are having problems with the login page (for example) you might want to disable this setting, although it might leave your site more open to brute-force password attacks.  If in doubt, leave this set to \'Yes\'.';
 $string['configsessioncookie'] = 'This setting customises the name of the cookie used for Moodle sessions.  This is optional, and only useful to avoid cookies being confused when there is more than one copy of Moodle running within the same web site.';
+$string['configsessioncookiepath'] = 'If you need to change where browsers send the Moodle cookies, you can change this setting to specify a subdirectory of your web site.  Otherwise the default \'/\' should be fine.';
 $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['configshowblocksonmodpages'] = 'Some activity modules support blocks on their pages.  If you turn this on, then teachers will be able to add side blocks on those pages, otherwise the interface does not show this feature.';
 $string['configshowsiteparticipantslist'] = 'All of these site students and site teachers will be listed on the site participants list. Who shall be allowed to see this site participants list?';