You are here

function session_api_available in Session API 5

Same name and namespace in other branches
  1. 6 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 tests/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 API ID is the mapping of the private php session_id [1] to the ID used by modules leveraging the Session API.

File

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

Code

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