function session_api_start_session

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

Create an empty string cookie.

This is useful for fooling the session_api_available() function when using Pressflow, which does not set a cookie for anonymous users.

1 call to session_api_start_session()
session_api_get_sid in ./session_api.module
Returns the current session's Session ID.

File

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

Code

function session_api_start_session() {
  $_SESSION['session_api_session'] = '';
  drupal_session_start();
}