mirror of
https://github.com/sorenpeter/timeline.git
synced 2025-12-15 10:57:01 +00:00
13 lines
273 B
PHP
13 lines
273 B
PHP
<?php
|
|
# A simple text to check if sessions are working OK
|
|
# Remove it from index.php to hide it from the public
|
|
require_once "libs/persistent_session.php";
|
|
|
|
if (!hasValidSession()) {
|
|
#header("Location: /login");
|
|
exit;
|
|
}
|
|
|
|
var_dump($_SESSION);
|
|
|
|
echo "Valid session";
|