Per request, there are a few different ways that you can tell whether or not a session has been started, such as:
$isSessionActive = (session_id() != \"\");
There are multiple places you need to check to verify the session is active:
1- cookie exists and is not expired 2- underlying session storage mechanism (file system or database) has a record matching the cookie.