function session_api_available

7.x-1.x session_api.module session_api_available()

Determine if Session API is available by checking if cookies are enabled.

2 calls to session_api_available()
SessionApiTestCase::testFunctions in ./session_api.test
Verify functions work properly.
session_api_get_sid in ./session_api.module
Returns the current session's Session ID.


./session_api.module, line 11
Session API provides an interface for storing information in the session.


function session_api_available() {
  return !empty($_COOKIE);