my php code is
<?php
session_start();
if(!isset($_SESSION["userId"]){
header('Location: index.php');
exit;
}
?>
and i got an error
Parse error: syntax error, unexpected '{' in C:\xampp\htdocs\page\login.php on line 3
can anyone help me to solve this problem