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.
Merge pull request #35 from dpwilhelmsen/patch-1

PHP 5.3 compatibility