Conversation
supporthi Seems not to work with internet explorer 11. Not able to log in, returns to login page.
Yes I have the same issue in mobile edge. I think it is could the cookies are being constructed. I updated the code as follows but you need PHP 7.3: function samesite_setcookie($name, $value, array $options) { setcookie($name, $value, $options); $_COOKIE[$name] = $value; /* $header = 'Set-Cookie:'; $header .= rawurlencode($name) . '=' . rawurlencode($value) . ';'; if (!empty($options['expires']) && $options['expires'] > 0) { $header .= 'expires=' . \gmdate('D, d-M-Y H:i:s T', (int) $options['expires']) . ';'; $header .= 'Max-Age=' . max(0, (int) ($options['expires'] - time())) . ';'; } $header .= 'path=' . rawurlencode($options['path']). ';'; $header .= 'domain=' . rawurlencode($options['domain']) . ';'; if (!empty($options['secure'])) { $header .= 'secure;'; } $header .= 'httponly;'; $header .= 'SameSite=' . rawurlencode($options['samesite']); header($header, false); $_COOKIE[$name] = $value; */ }
Yes I have the same issue in mobile edge. I think it is could the cookies are being constructed. I updated the code as follows but you need PHP 7.3: function samesite_setcookie($name, $value, array $options) { setcookie($name, $value, $options); $_COOKIE[$name] = $value; /* $header = 'Set-Cookie:'; $header .= rawurlencode($name) . '=' . rawurlencode($value) . ';'; if (!empty($options['expires']) && $options['expires'] > 0) { $header .= 'expires=' . \gmdate('D, d-M-Y H:i:s T', (int) $options['expires']) . ';'; $header .= 'Max-Age=' . max(0, (int) ($options['expires'] - time())) . ';'; } $header .= 'path=' . rawurlencode($options['path']). ';'; $header .= 'domain=' . rawurlencode($options['domain']) . ';'; if (!empty($options['secure'])) { $header .= 'secure;'; } $header .= 'httponly;'; $header .= 'SameSite=' . rawurlencode($options['samesite']); header($header, false); $_COOKIE[$name] = $value; */ }