mirror of
https://github.com/vrana/adminer.git
synced 2025-08-08 15:47:00 +02:00
Improve session management
This commit is contained in:
@@ -396,6 +396,15 @@ function restart_session() {
|
||||
}
|
||||
}
|
||||
|
||||
/** Stop session if it would be possible to restart it later
|
||||
* @return null
|
||||
*/
|
||||
function stop_session() {
|
||||
if (!ini_bool("session.use_cookies")) {
|
||||
session_write_close();
|
||||
}
|
||||
}
|
||||
|
||||
/** Get session variable for current server
|
||||
* @param string
|
||||
* @return mixed
|
||||
|
Reference in New Issue
Block a user