Subversion-Projekte lars-tiefland.ci

Revision

Revision 2257 | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 2257 Revision 2414
Zeile 4... Zeile 4...
4
 *
4
 *
5
 * An open source application development framework for PHP
5
 * An open source application development framework for PHP
6
 *
6
 *
7
 * This content is released under the MIT License (MIT)
7
 * This content is released under the MIT License (MIT)
8
 *
8
 *
9
 * Copyright (c) 2014 - 2018, British Columbia Institute of Technology
9
 * Copyright (c) 2014 - 2019, British Columbia Institute of Technology
10
 *
10
 *
11
 * Permission is hereby granted, free of charge, to any person obtaining a copy
11
 * Permission is hereby granted, free of charge, to any person obtaining a copy
12
 * of this software and associated documentation files (the "Software"), to deal
12
 * of this software and associated documentation files (the "Software"), to deal
13
 * in the Software without restriction, including without limitation the rights
13
 * in the Software without restriction, including without limitation the rights
14
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
Zeile 27... Zeile 27...
27
 * THE SOFTWARE.
27
 * THE SOFTWARE.
28
 *
28
 *
29
 * @package	CodeIgniter
29
 * @package	CodeIgniter
30
 * @author	EllisLab Dev Team
30
 * @author	EllisLab Dev Team
31
 * @copyright	Copyright (c) 2008 - 2014, EllisLab, Inc. (https://ellislab.com/)
31
 * @copyright	Copyright (c) 2008 - 2014, EllisLab, Inc. (https://ellislab.com/)
32
 * @copyright	Copyright (c) 2014 - 2018, British Columbia Institute of Technology (http://bcit.ca/)
32
 * @copyright	Copyright (c) 2014 - 2019, British Columbia Institute of Technology (https://bcit.ca/)
33
 * @license	http://opensource.org/licenses/MIT	MIT License
33
 * @license	https://opensource.org/licenses/MIT	MIT License
34
 * @link	https://codeigniter.com
34
 * @link	https://codeigniter.com
35
 * @since	Version 3.0.0
35
 * @since	Version 3.0.0
36
 * @filesource
36
 * @filesource
37
 */
37
 */
38
defined('BASEPATH') OR exit('No direct script access allowed');
38
defined('BASEPATH') OR exit('No direct script access allowed');
Zeile 111... Zeile 111...
111
	}
111
	}
Zeile 112... Zeile 112...
112
 
112
 
Zeile 113... Zeile 113...
113
	// ------------------------------------------------------------------------
113
	// ------------------------------------------------------------------------
-
 
114
 
-
 
115
	/**
-
 
116
	 * PHP 5.x validate ID
-
 
117
	 *
-
 
118
	 * Enforces session.use_strict_mode
-
 
119
	 *
-
 
120
	 * @return	void
-
 
121
	 */
-
 
122
	public function php5_validate_id()
-
 
123
	{
-
 
124
		if (isset($_COOKIE[$this->_config['cookie_name']]) && ! $this->validateSessionId($_COOKIE[$this->_config['cookie_name']]))
-
 
125
		{
-
 
126
			unset($_COOKIE[$this->_config['cookie_name']]);
-
 
127
		}
-
 
128
	}
-
 
129
 
-
 
130
	// ------------------------------------------------------------------------
114
 
131
 
115
	/**
132
	/**
116
	 * Cookie destroy
133
	 * Cookie destroy
117
	 *
134
	 *
118
	 * Internal method to force removal of a cookie by the client
135
	 * Internal method to force removal of a cookie by the client
Zeile 165... Zeile 182...
165
			$this->_lock = FALSE;
182
			$this->_lock = FALSE;
166
		}
183
		}
Zeile 167... Zeile 184...
167
 
184
 
168
		return TRUE;
185
		return TRUE;
169
	}
-
 
170
 
-
 
171
	// ------------------------------------------------------------------------
-
 
172
 
-
 
173
	/**
-
 
174
	 * Fail
-
 
175
	 *
-
 
176
	 * Drivers other than the 'files' one don't (need to) use the
-
 
177
	 * session.save_path INI setting, but that leads to confusing
-
 
178
	 * error messages emitted by PHP when open() or write() fail,
-
 
179
	 * as the message contains session.save_path ...
-
 
180
	 * To work around the problem, the drivers will call this method
-
 
181
	 * so that the INI is set just in time for the error message to
-
 
182
	 * be properly generated.
-
 
183
	 *
-
 
184
	 * @return	mixed
-
 
185
	 */
-
 
186
	protected function _fail()
-
 
187
	{
-
 
188
		ini_set('session.save_path', config_item('sess_save_path'));
-
 
189
		return $this->_failure;
-
 
190
	}
186
	}