aboutsummaryrefslogtreecommitdiffhomepage
path: root/index.php
diff options
context:
space:
mode:
authornodiscc <nodiscc@gmail.com>2014-11-03 13:21:14 +0100
committernodiscc <nodiscc@gmail.com>2014-11-03 13:21:14 +0100
commit01ec179148463eb239a787ce12ae9aff1caf0d91 (patch)
treea07a9b42ba36e2afb233071443695d00be4f07be /index.php
parent36b226ca1bdc856ec3b8c0655852289e52b8d777 (diff)
downloadShaarli-01ec179148463eb239a787ce12ae9aff1caf0d91.tar.gz
Shaarli-01ec179148463eb239a787ce12ae9aff1caf0d91.tar.zst
Shaarli-01ec179148463eb239a787ce12ae9aff1caf0d91.zip
index.html: add warning message about hostname/cookie storage problems
* Fixes https://github.com/sebsauvage/Shaarli/issues/196 * Fixes https://github.com/sebsauvage/Shaarli/issues/97
Diffstat (limited to 'index.php')
-rw-r--r--index.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/index.php b/index.php
index 01931198..06e5b784 100644
--- a/index.php
+++ b/index.php
@@ -2067,7 +2067,9 @@ function install()
2067 { // Step 2: Check if data in session is correct. 2067 { // Step 2: Check if data in session is correct.
2068 echo '<pre>Sessions do not seem to work correctly on your server.<br>'; 2068 echo '<pre>Sessions do not seem to work correctly on your server.<br>';
2069 echo 'Make sure the variable session.save_path is set correctly in your php config, and that you have write access to it.<br>'; 2069 echo 'Make sure the variable session.save_path is set correctly in your php config, and that you have write access to it.<br>';
2070 echo 'It currently points to '.session_save_path().'<br><br><a href="?">Click to try again.</a></pre>'; 2070 echo 'It currently points to '.session_save_path().'<br>';
2071 echo 'Check that the hostname used to access Shaarli contains a dot. On some browsers, accessing your server via a hostname like \'localhost\' or any custom hostname without a dot causes cookie storage to fail. We recommend accessing your server via it\'s IP address or Fully Qualified Domain Name.<br>';
2072 echo '<br><a href="?">Click to try again.</a></pre>';
2071 die; 2073 die;
2072 } 2074 }
2073 if (!isset($_SESSION['session_tested'])) 2075 if (!isset($_SESSION['session_tested']))