tags:

views:

35

answers:

1

Is there such an API?

+6  A: 

You can find out by calling the following code:

if(isset($_SESSION))
{
    //The session was started
}
Sam152
Keep in mind that `session_write_close()` ends the session mechanism but doesn't destroy _SESSION.
VolkerK