From panel we must connect to phpmyadmin with sso credential
We profite to forgot also any phpmyadmin cookie session
This commit is contained in:
parent
41621c8117
commit
ddeefbde63
|
@ -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>
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue