1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-08 15:47:00 +02:00

Improve session restarting

git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@1227 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
jakubvrana
2009-11-03 10:55:57 +00:00
parent 881fbf58dc
commit be49e08bb4
7 changed files with 9 additions and 10 deletions

View File

@@ -220,7 +220,7 @@ function restart_session() {
*/
function redirect($location, $message = null) {
if (isset($message)) {
session_start();
restart_session();
$_SESSION["messages"][] = $message;
}
header("Location: " . (strlen($location) ? $location : "."));