How to tell if a session is active? [duplicate]

See edits to the original question; basically, PHP 5.4 and above now has a function called session_status() to solve this problem!

“Expose session status via new function, session_status” (SVN Revision 315745)

If you need this functionality in a pre-PHP 5.4 version, see hakre’s answer.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)