]> git.mjollnir.org Git - moodle.git/commitdiff
Put in a check for the sessions directory
authormoodler <moodler>
Fri, 10 Jan 2003 07:33:26 +0000 (07:33 +0000)
committermoodler <moodler>
Fri, 10 Jan 2003 07:33:26 +0000 (07:33 +0000)
admin/index.php
lang/en/docs/install.html

index 894be6c843afafdb0159c766f5d019a216f73f1e..b1c80d91b1e91a17d0cc34161c3469a7189e2f67 100644 (file)
         die;
     }
 
+/// Check that sessions are supported
+
+    if (!is_readable(ini_get('session.save_path'))) {
+        $sessionpath = ini_get('session.save_path');
+        notify("Warning: It appears your server does not support sessions (session.save_path = '$sessionpath')");
+    }
+
+
 /// Check that config.php has been edited
 
     if ($CFG->wwwroot == "http://example.com/moodle") {
index 3f53e232fb92c6a34cec82aee8eaf1c9b71d6f33..63b7dbd17f8791e9b63f327ce247af53aed5cffe 100644 (file)
@@ -45,7 +45,9 @@
     or <A HREF="http://www.easyphp.org/">EasyPHP</A> which will install Apache, \r
     PHP, and MySQL for you. Make sure you enable the GD module so Moodle can process \r
     images - you may have to edit php.ini and remove the comment (;) from this \r
-    line: 'extension=php_gd.dll'.</p>\r
+    line: 'extension=php_gd.dll'. You may also have to fix the directory for \r
+    session.save_path - instead of the default "/tmp" use a Windows directory \r
+    like "c:/temp".</p>\r
 \r
   <p>On Mac OS X I highly recommend the <a href="http://fink.sourceforge.net/">fink</a> \r
     project as a way to download easily-maintainable packages for all of this.  If you are less\r