diff options
-rw-r--r-- | examples/openid.php | 5 | ||||
-rw-r--r-- | examples/signon.php | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/examples/openid.php b/examples/openid.php index a87c1b19a8..68b7dfed98 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. */ @@ -74,7 +77,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 da9fadfabc..0927fa84e2 100644 --- a/examples/signon.php +++ b/examples/signon.php @@ -11,8 +11,10 @@ * @subpackage Example */ +/* 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); |