Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Čihař <michal@cihar.com>2017-10-20 12:25:28 +0300
committerMichal Čihař <michal@cihar.com>2017-10-20 12:25:28 +0300
commitaa1cb197f52ac328948f4f1e7f2cc8d70d5dede7 (patch)
tree8de5f3edc69638940c86554d54251edbd882101a /examples
parentc2d5c993a28f414d0587799803898ccfc548d774 (diff)
parentf2dcdfff5016c40ae94c658467f5133e032ec377 (diff)
Merge branch 'QA_4_7'
Diffstat (limited to 'examples')
-rw-r--r--examples/openid.php5
-rw-r--r--examples/signon.php4
2 files changed, 7 insertions, 2 deletions
diff --git a/examples/openid.php b/examples/openid.php
index 1d15a07000..35804e5661 100644
--- a/examples/openid.php
+++ b/examples/openid.php
@@ -20,6 +20,9 @@ if (false === @include_once 'OpenID/RelyingParty.php') {
exit;
}
+/* Change this to true if using phpMyAdmin over https */
+$secure_cookie = false;
+
/**
* Map of authenticated users to MySQL user/password pairs.
*/
@@ -81,7 +84,7 @@ function Die_error($e)
/* Need to have cookie visible from parent directory */
-session_set_cookie_params(0, '/', '', true, true);
+session_set_cookie_params(0, '/', '', $secure_cookie, true);
/* Create signon session */
$session_name = 'SignonSession';
session_name($session_name);
diff --git a/examples/signon.php b/examples/signon.php
index b06eca4099..bb70982e4a 100644
--- a/examples/signon.php
+++ b/examples/signon.php
@@ -13,8 +13,10 @@
/* Use cookies for session */
@ini_set('session.use_cookies', 'true');
+/* Change this to true if using phpMyAdmin over https */
+$secure_cookie = false;
/* Need to have cookie visible from parent directory */
-session_set_cookie_params(0, '/', '', true, true);
+session_set_cookie_params(0, '/', '', $secure_cookie, true);
/* Create signon session */
$session_name = 'SignonSession';
session_name($session_name);