function authcache_add_cookie in Authenticated User Page Caching (Authcache) 7.2
Add given cookie records to the current page request.
Related topics
4 calls to authcache_add_cookie()
- authcache_debug_user_login in modules/
authcache_debug/ authcache_debug.module - Implements hook_user_login().
- authcache_debug_user_logout in modules/
authcache_debug/ authcache_debug.module - Implements hook_user_logout().
- authcache_fix_cookies in ./
authcache.module - Add and remove cookies to the browser session as required.
- authcache_test_add_cookie in tests/
authcache_test.module - Add a cookie to the response.
File
- ./
authcache.module, line 756 - Authenticated User Page Caching (and anonymous users, too!)
Code
function authcache_add_cookie($new_cookies = array()) {
$cookies =& drupal_static(__FUNCTION__, array());
$cookies = $new_cookies + $cookies;
return $cookies;
}