14 lines
273 B
PHP
14 lines
273 B
PHP
<?php
|
|
session_start();
|
|
|
|
// If the agent is logged in, redirect to their dashboard.
|
|
if (isset($_SESSION['agent_id'])) {
|
|
header("Location: dashboard.php");
|
|
exit;
|
|
} else {
|
|
// If not logged in, show the login page.
|
|
header("Location: login.php");
|
|
exit;
|
|
}
|
|
?>
|