Commit a8e31881 authored by a.ross's avatar a.ross
Browse files

Issue #2416313 by marabak, Eli-T, indigoxela, a.ross: Is this the correct way...

Issue #2416313 by marabak, Eli-T, indigoxela, a.ross: Is this the correct way to check if cookies are enabled
parent 7b841957
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -7,9 +7,12 @@

/**
 * Determine if Session API is available by checking if cookies are enabled.
 *
 * Due to a change in Drupal 7.83, this function now always returns TRUE. In
 * hindsight it doesn't seem like this function was ever necessary.
 */
function session_api_available() {
  return !empty($_COOKIE);
  return TRUE;
}

/**