Line 319 in /home/leroysca/ss5-upgrade.leroyscatering.ca/vendor/silverstripe/framework/src/Control/Session.php
310 311 // If we want a secure cookie for HTTPS, use a separate session name. This lets us have a 312 // separate (less secure) session for non-HTTPS requests 313 // if headers_sent() is true then it's best to throw the resulting error rather than risk 314 // a security hole. 315 if ($cookieParams['secure']) { 316 session_name($this->config()->get('cookie_name_secure')); 317 } 318 319 session_start(); 320 321 // Session start emits a cookie, but only if there's no existing session. If there is a session timeout 322 // tied to this request, make sure the session is held for the entire timeout by refreshing the cookie age. 323 if ($cookieParams['lifetime'] && $this->requestContainsSessionId($request)) { 324 Cookie::set( 325 session_name(),