if(!isset($session_id) || empty($session_id)) {
session_start();
$_SESSION["Inputs"]=array();
}
It's not clear where $session_id is declared if at all, therefore the code will always run regardless of whether you have a $_SESSION variable. In addition, $_SESSION["Inputs"]=array(); may overwrite previous $_SESSION variables, leaving you with an empty array.
Reputation Points: 1048
Solved Threads: 946
Sarcastic Poster
Offline 6,678 posts
since Oct 2006