PHP 5.3 compatibility

Unfortunately, session_status() is a method introduced in PHP 5.4.
For 5.3 compatibility, the best we can do is just to check whether 
the session exists.