From panel we must connect to phpmyadmin with sso credential

We profite to forgot also any phpmyadmin cookie session
This commit is contained in:
azerttyu 2017-10-07 11:21:53 +02:00
parent 41621c8117
commit ddeefbde63
2 changed files with 5 additions and 1 deletions

View File

@ -97,7 +97,7 @@ if ($r[Rights] == 'All') {
</tr>
<tr>
<td colspan="2" align="center">
<a href="/alternc-sql/" target="_blank"><?php __("Web interface PhpMyAdmin"); ?></a>
<a href="/sql_pma_sso.php" target="_blank"><?php __("Web interface PhpMyAdmin"); ?></a>
<p>
<code>http://<?php echo $L_FQDN; ?>/alternc-sql/</code>
</p>

View File

@ -35,6 +35,10 @@ if ($r=$mysql->php_myadmin_connect()) {
$_SESSION['PMA_single_signon_password'] = $r["pass"];
$_SESSION['PMA_single_signon_host'] = $r["host"]; // pma >= 2.11
session_write_close();
// Forget any standard phpmyadmin session
setcookie("phpMyAdmin", "", time() - 3600);
// finally redirect to phpMyAdmin :
header("Location: /alternc-sql/index.php");
exit();