print session

This commit is contained in:
Christopher 2020-10-23 23:47:52 +02:00
parent 70a7aa4af2
commit d249ebc34a
2 changed files with 5 additions and 1 deletions

View File

@ -14,7 +14,11 @@ if(isset($_SESSION['LOGIN']))
}
if($container == NULL)
{
print_r($_SESSION);
die("unknown container");
}
$logOutput = $dockerClient->getContainerLogs($_SESSION['CONTAINER']);

View File

@ -18,7 +18,7 @@
if($container != NULL)
{
$_SESSION['LOGIN'] = "true";
$_SESSION['CONTAINER'] = $container['Name'];
$_SESSION['CONTAINER'] = $container['Name'][0];
include "./pages/dashboard.php";
die();