'Signon test']; $_SESSION['PMA_single_signon_HMAC_secret'] = hash('sha1', uniqid(strval(random_int(0, mt_getrandmax())), true)); $id = session_id(); /* Close that session */ @session_write_close(); /* Redirect to phpMyAdmin (should use absolute URL here!) */ header('Location: ../index.php'); } else { /* Show simple form */ header('Content-Type: text/html; charset=utf-8'); echo '' . "\n"; echo ' phpMyAdmin single signon example '; if (isset($_SESSION['PMA_single_signon_error_message'])) { echo '

'; echo $_SESSION['PMA_single_signon_error_message']; echo '

'; } echo '
Username:
Password:
Host: (will use the one from config.inc.php by default)
Port: (will use the one from config.inc.php by default)
'; }