Session und cookie Check
This commit is contained in:
40
admin_check_session.php
Executable file
40
admin_check_session.php
Executable file
@@ -0,0 +1,40 @@
|
||||
<?php
|
||||
session_start();
|
||||
|
||||
require_once 'inc/header.php'; ?>
|
||||
|
||||
<div class="container">
|
||||
<h1 class="mb-4">Debug-Informationen</h1>
|
||||
|
||||
<div class="card mb-4">
|
||||
<div class="card-header bg-primary text-white">
|
||||
<h4>Session-Daten ($_SESSION)</h4>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<?php if (!empty($_SESSION)): ?>
|
||||
<pre><?php print_r($_SESSION); ?></pre>
|
||||
<?php else: ?>
|
||||
<p class="text-muted">Keine aktiven Session-Daten.</p>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="card">
|
||||
<div class="card-header bg-success text-white">
|
||||
<h4>Cookie-Daten ($_COOKIE)</h4>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<?php if (!empty($_COOKIE)): ?>
|
||||
<pre><?php print_r($_COOKIE); ?></pre>
|
||||
<?php else: ?>
|
||||
<p class="text-muted">Keine Cookies gefunden.</p>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="text-center mt-4">
|
||||
<a href="index.php" class="btn btn-secondary">Zurück zur Startseite</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php require_once 'inc/footer.php'; ?>
|
||||
Reference in New Issue
Block a user