function _bakery_cookie_name in Bakery Single Sign-On System 7.3
Same name and namespace in other branches
- 6.2 bakery.module \_bakery_cookie_name()
- 7.4 bakery.module \_bakery_cookie_name()
- 7.2 bakery.module \_bakery_cookie_name()
Name for cookie including session.cookie_secure and variable extension.
Parameters
string $type:
Return value
string The cookie name for this environment.
1 call to _bakery_cookie_name()
- bakery_get_bakery in ./
bakery.module - Helper function to retrieve the instance of Bakery.
File
- ./
bakery.module, line 676
Code
function _bakery_cookie_name($type = 'SSO') {
// Use different names for HTTPS and HTTP to prevent a cookie collision.
if (ini_get('session.cookie_secure')) {
$type .= 'SSL';
}
// Allow site to modify the cookie name.
$extension = variable_get('bakery_cookie_extension', '');
$type .= $extension;
return 'BAKERY' . $type;
}