Merge branch 'magicbug:dev' into dev
这个提交包含在:
		
						当前提交
						cc4b8d1e8a
					
				
					共有  1 个文件被更改,包括 20 次插入 和 6 次删除
				
			
		|  | @ -139,14 +139,28 @@ abstract class CI_Session_driver implements SessionHandlerInterface { | ||||||
| 	 */ | 	 */ | ||||||
| 	protected function _cookie_destroy() | 	protected function _cookie_destroy() | ||||||
| 	{ | 	{ | ||||||
|  | 		if ( ! is_php('7.3')) | ||||||
|  | 		{ | ||||||
|  | 			$header = 'Set-Cookie: '.$this->_config['cookie_name'].'='; | ||||||
|  | 			$header .= '; Expires='.gmdate('D, d-M-Y H:i:s T', 1).'; Max-Age=-1'; | ||||||
|  | 			$header .= '; Path='.$this->_config['cookie_path']; | ||||||
|  | 			$header .= ($this->_config['cookie_domain'] !== '' ? '; Domain='.$this->_config['cookie_domain'] : ''); | ||||||
|  | 			$header .= ($this->_config['cookie_secure'] ? '; Secure' : '').'; HttpOnly; SameSite='.$this->_config['cookie_samesite']; | ||||||
|  | 			header($header); | ||||||
|  | 			return; | ||||||
|  | 		} | ||||||
|  | 
 | ||||||
| 		return setcookie( | 		return setcookie( | ||||||
| 			$this->_config['cookie_name'], | 			$this->_config['cookie_name'], | ||||||
| 			NULL, | 			'', | ||||||
| 			1, | 			array( | ||||||
| 			$this->_config['cookie_path'], | 				'expires' => 1, | ||||||
| 			$this->_config['cookie_domain'], | 				'path' => $this->_config['cookie_path'], | ||||||
| 			$this->_config['cookie_secure'], | 				'domain' => $this->_config['cookie_domain'], | ||||||
| 			TRUE | 				'secure' => $this->_config['cookie_secure'], | ||||||
|  | 				'httponly' => TRUE, | ||||||
|  | 				'samesite' => $this->_config['cookie_samesite'] | ||||||
|  | 			) | ||||||
| 		); | 		); | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		正在加载…
	
		在新工单中引用