I'm trying to check a $_SESSION variable and if it's NULL, to set it to a value from a mySQL query. Here's the code fragment:
if (is_null($_SESSION['nl_id']) )
$_SESSION['nl_id'] = $row_lists['id'];
When I run it, $_SESSION['nl_id'] is NULL (I checked it with the Zend Studio debugger), but my 'if' statement evaluates FALSE (again, as checked with Zend Studio debugger) so my variable assignment never happens.
Any ideas why this is happening?
--Jeff