You are here

function session_api_start_session in Session API 7

Same name and namespace in other branches
  1. 6 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_get_cookie_name()] = '';
  drupal_session_start();
}