<?php
// File: api/extend_session.php
require_once '../config/auth.php';

header('Content-Type: application/json');

if (!isLoggedIn()) {
    echo json_encode(['success' => false, 'message' => 'Not logged in']);
    exit;
}

// Update session last activity time
$_SESSION['last_activity'] = time();

echo json_encode(['success' => true, 'message' => 'Session extended']);
?>