You are here

function session_api_available in Session API 6

Same name and namespace in other branches
  1. 5 session_api.module \session_api_available()
  2. 7 session_api.module \session_api_available()

Determine if cookies are enabled.

2 calls to session_api_available()
SessionApiTestCase::testFunctions in ./session_api.test
Verify functions.
session_api_get_sid in ./session_api.module
Return a Session API ID corresponding to the current session. The session id is a created using the same method as Drupal 7 core as defined in includes/session.inc.

File

./session_api.module, line 14
The Session API module provides a quick interface for storing information in the session.

Code

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