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() != \"\");
Here's a good drop in replacement that won't break stuff when you move to 5.4:
if(!function_exists('session_status')){ function session_active(){ return defined('SID'); } }else{ function session_active(){ return (session_status() == PHP_SESSION_ACTIVE); } }