diff --git a/libraries/plugins/auth/AuthenticationCookie.class.php b/libraries/plugins/auth/AuthenticationCookie.class.php index f9588b0977..833d4ad990 100644 --- a/libraries/plugins/auth/AuthenticationCookie.class.php +++ b/libraries/plugins/auth/AuthenticationCookie.class.php @@ -74,7 +74,18 @@ class AuthenticationCookie extends AuthenticationPlugin $response = PMA_Response::getInstance(); if ($response->isAjax()) { $response->isSuccess(false); + + $login_link = '

[ ' . + sprintf( + '%s', + $GLOBALS['cfg']['PmaAbsoluteUri'], + __('Log in')) . + ' ]'; + if (! empty($conn_error)) { + + $conn_error .= $login_link; + $response->addJSON( 'message', PMA_Message::error( @@ -85,7 +96,8 @@ class AuthenticationCookie extends AuthenticationPlugin $response->addJSON( 'message', PMA_Message::error( - __('Your session has expired. Please login again.') + __('Your session has expired. Please log in again.') . + $login_link ) ); }