<?php
session_start();
$url='connexion.php';
if(!isset($_SESSION['connected'])){
echo '<script type="text/javascript">window.location="'.$url.'";</script>';
header('location: connexion.php');
exit();
}else{
$url='preferences.php';
echo '<script type="text/javascript">window.location="'.$url.'";</script>';
header('location: preferences.php');
}
?>
|