Source
22 if(!headers_sent($file, $line)) {
23 $expiry = $expiryDays > 0 ? time()+(86400*$expiryDays) : 0;
24 $path = ($path) ? $path : Director::baseURL();
25 // Versions of PHP prior to 5.2 do not support the $httpOnly value
26 if(version_compare(phpversion(), 5.2, '<'))
27 setcookie($name, $value, $expiry, $path, $domain, $secure);
28 else
29 setcookie($name, $value, $expiry, $path, $domain, $secure, $httpOnly);
30 } else {
31 if(self::$report_errors) user_error("Cookie '$name' can't be set. The site started outputting was content at line $line in $file", E_USER_WARNING);
32 }
33 $_COOKIE[$name] = $value;
34 }
35
36 /**
37 * Get a cookie variable
Trace
- Cookie 'bypassStaticCache' can't be set. The site started outputting was content at line 53 in /home/walczakf/public_html/ss/sapphire/core/model/DataObjectDecorator.php
Line 31 of Cookie.php
- Cookie::set(bypassStaticCache,,0)
Line 599 of Versioned.php
- Versioned::choose_site_stage()
Line 917 of Versioned.php
- Versioned->modelascontrollerInit(ModelAsController,,,,,,)
Line 859 of Object.php
- Object->extend(modelascontrollerInit,ModelAsController)
Line 31 of ModelAsController.php
- ModelAsController->init()
Line 47 of ModelAsController.php
- ModelAsController->handleRequest(SS_HTTPRequest)
Line 122 of RootURLController.php
- RootURLController->handleRequest(SS_HTTPRequest)
Line 283 of Director.php
- Director::handleRequest(SS_HTTPRequest,Session)
Line 127 of Director.php
- Director::direct(/)
Line 127 of main.php