function session_api_start_session in Session API 6
Same name and namespace in other branches
- 7 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.
File
- ./
session_api.module, line 23 - The Session API module provides a quick interface for storing information in the session.
Code
function session_api_start_session() {
if (!isset($_COOKIE['session_api_session'])) {
$_COOKIE['session_api_session'] = '';
}
}