diff options
author | nodiscc <nodiscc@gmail.com> | 2014-11-03 13:21:14 +0100 |
---|---|---|
committer | nodiscc <nodiscc@gmail.com> | 2014-11-03 13:21:14 +0100 |
commit | 01ec179148463eb239a787ce12ae9aff1caf0d91 (patch) | |
tree | a07a9b42ba36e2afb233071443695d00be4f07be /index.php | |
parent | 36b226ca1bdc856ec3b8c0655852289e52b8d777 (diff) | |
download | Shaarli-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.php | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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'])) |