24 lines
494 B
PHP
Executable File
24 lines
494 B
PHP
Executable File
<?php
|
|
session_start();
|
|
if (!isset($_SESSION['user_id'])){
|
|
echo "Inicie sesión primero para acceder";
|
|
echo '<br><a href="padre.php">Inicie sesión</a>';
|
|
exit;
|
|
}
|
|
?>
|
|
|
|
<!doctype html>
|
|
<html>
|
|
<head>
|
|
<title>Pagina hijo</title>
|
|
<meta name="description" content="Our first page">
|
|
<meta name="keywords" content="html tutorial template">
|
|
</head>
|
|
<body>
|
|
<h3>Pagina hijo</h3>
|
|
<a href="padre.php">Link a la pagina principal</a><br>
|
|
<a href="hija.php">Link a la pagina hija</a>
|
|
</body>
|
|
</html>
|
|
|