From: nodiscc Date: Mon, 3 Nov 2014 12:21:14 +0000 (+0100) Subject: index.html: add warning message about hostname/cookie storage problems X-Git-Tag: v0.0.43beta~31^2 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=01ec179148463eb239a787ce12ae9aff1caf0d91;p=github%2Fshaarli%2FShaarli.git 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 --- diff --git a/index.php b/index.php index 01931198..06e5b784 100644 --- a/index.php +++ b/index.php @@ -2067,7 +2067,9 @@ function install() { // Step 2: Check if data in session is correct. echo '
Sessions do not seem to work correctly on your server.
'; echo 'Make sure the variable session.save_path is set correctly in your php config, and that you have write access to it.
'; - echo 'It currently points to '.session_save_path().'

Click to try again.
'; + echo 'It currently points to '.session_save_path().'
'; + 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.
'; + echo '
Click to try again.'; die; } if (!isset($_SESSION['session_tested']))