Skip to content
Snippets Groups Projects
Commit 8b20f1d2 authored by Thijs Kinkhorst's avatar Thijs Kinkhorst
Browse files

Remove another piece of support code for PHP 5.1 and earlier.

parent 37f4425a
Branches
Tags
No related merge requests found
......@@ -38,12 +38,7 @@ class SimpleSAML_SessionHandlerPHP extends SimpleSAML_SessionHandler {
$params = $this->getCookieParams();
$version = explode('.', PHP_VERSION);
if ((int)$version[0] === 5 && (int)$version[1] < 2) {
session_set_cookie_params($params['lifetime'], $params['path'], $params['domain'], $params['secure']);
} else {
session_set_cookie_params($params['lifetime'], $params['path'], $params['domain'], $params['secure'], $params['httponly']);
}
session_set_cookie_params($params['lifetime'], $params['path'], $params['domain'], $params['secure'], $params['httponly']);
$this->cookie_name = $config->getString('session.phpsession.cookiename', NULL);
if (!empty($this->cookie_name)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment