- avoid removing session for cookie auth if LoginCookieDeleteAll is
disabled
- redirect user to other server rather than to login page
- show message about partial logout
- adjust tests
- this is based on #13221Fixes#12301
Signed-off-by: Michal Čihař <michal@cihar.com>
If you are logged-in into multiple database servers, logOut() logs you
out of all of them. This fix will prevent that, and will only destroy
the session when you log out of the last server.
Signed-off-by: Michal Čihař <michal@cihar.com>
Signed-off-by: Harro Verton <wanwizard@wanwizard.eu>
Calculate session expiry per browser (tracking is based on
sessionStorage which is unique per tab). With this we're able to detect
that there is another window open and actively used and avoid logging it
out by inactive one.
Issue #11231
Signed-off-by: Michal Čihař <michal@cihar.com>
Move the check from template to the code, so that the selection is
completely hidden when there is nothing to select.
Fixes#12988
Signed-off-by: Michal Čihař <michal@cihar.com>
It is really not necessary as MySQL decides connection type rather based
on hostname than on anything else.
Signed-off-by: Michal Čihař <michal@cihar.com>
This can happen from corrupted cookies, by invalid encryption parameters
used in older phpMyAdmin versions or by wrong openSSL configuration.
In neither case the error is useful to user, but we need to clear the
error buffer as otherwise the errors would pop up later, for example
during MySQL SSL setup.
Fixes#12924
Signed-off-by: Michal Čihař <michal@cihar.com>
Without calling openssl_error_string() we pollute openssl global state
and some other library might report this as failure (eg. mysqlnd driver
when connecting to SSL enabled server).
Fixes#12293
Signed-off-by: Michal Čihař <michal@cihar.com>
It really doesn't make sense here as the username can potentionally
contain < anyway and we need to deal with it later (and we do).
Fixes#12710
Signed-off-by: Michal Čihař <michal@cihar.com>
Use *_real_escape string functions provided by connectors to escape strings while exporting
Fix#12453
Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
Conflicts:
libraries/server_privileges.lib.php
This avoids unnecessary redirect on the way (I still think this website
setup is weird, but that's all I can do about it).
Signed-off-by: Michal Čihař <michal@cihar.com>