<?php
require_once __DIR__ . '/../app/config.php';

header('Content-Type: text/html; charset=utf-8');

echo "cookie_lifetime (ini): " . ini_get('session.cookie_lifetime') . "<br>";
echo "gc_maxlifetime (ini): " . ini_get('session.gc_maxlifetime') . "<br>";
echo "session_name: " . session_name() . "<br>";
echo "session_id: " . session_id() . "<br>";
echo "auth: " . (!empty($_SESSION['user']) ? 'LOGADO' : 'NÃO LOGADO') . "<br>";
