session_start() only creates uniq id for session and array, but not saves it. At the end of your first script you need to use session_write_close()