Facebook now offer subscriptions to users so you can get realtime updates on changes. If my app receives an update, I plan to store it in the database. I would also like to
If you are on php 5.4+, it is cleaner to use session_status():
if (session_status() == PHP_SESSION_ACTIVE) {
echo 'Session is active';
}
PHP_SESSION_DISABLED if sessions are disabled.PHP_SESSION_NONE if sessions are enabled, but none exists.PHP_SESSION_ACTIVE if sessions are enabled, and one exists.