You are here

function _bakery_cookie_name in Bakery Single Sign-On System 7.4

Same name and namespace in other branches
  1. 6.2 bakery.module \_bakery_cookie_name()
  2. 7.2 bakery.module \_bakery_cookie_name()
  3. 7.3 bakery.module \_bakery_cookie_name()

Name for cookie including variable extension.

Parameters

string $type: CHOCOLATECHIP or OATMEAL, default CHOCOLATECHIP

Return value

string The cookie name for this environment.

3 calls to _bakery_cookie_name()
_bakery_bake_chocolatechip_cookie in ./bakery.module
Create a new cookie for identification
_bakery_destroy_cookie in ./bakery.module
Destroy unwanted cookies
_bakery_validate_cookie in ./bakery.module
Function to validate cookies

File

./bakery.module, line 464

Code

function _bakery_cookie_name($type = 'CHOCOLATECHIP') {

  // Allow installation to modify the cookie name.
  $extension = variable_get('bakery_cookie_extension', '');
  $type .= $extension;
  return $type;
}