You are here

function session_api_available in Session API 7

Same name and namespace in other branches
  1. 5 session_api.module \session_api_available()
  2. 6 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.

File

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

Code

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