3
3
namespace Config ;
4
4
5
5
use CodeIgniter \Config \BaseConfig ;
6
- use CodeIgniter \Session \Handlers \FileHandler ;
7
6
8
7
class App extends BaseConfig
9
8
{
@@ -136,191 +135,6 @@ class App extends BaseConfig
136
135
*/
137
136
public bool $ forceGlobalSecureRequests = false ;
138
137
139
- /**
140
- * --------------------------------------------------------------------------
141
- * Session Driver
142
- * --------------------------------------------------------------------------
143
- *
144
- * The session storage driver to use:
145
- * - `CodeIgniter\Session\Handlers\FileHandler`
146
- * - `CodeIgniter\Session\Handlers\DatabaseHandler`
147
- * - `CodeIgniter\Session\Handlers\MemcachedHandler`
148
- * - `CodeIgniter\Session\Handlers\RedisHandler`
149
- *
150
- * @deprecated use Config\Session::$driver instead.
151
- */
152
- public string $ sessionDriver = FileHandler::class;
153
-
154
- /**
155
- * --------------------------------------------------------------------------
156
- * Session Cookie Name
157
- * --------------------------------------------------------------------------
158
- *
159
- * The session cookie name, must contain only [0-9a-z_-] characters
160
- *
161
- * @deprecated use Config\Session::$cookieName instead.
162
- */
163
- public string $ sessionCookieName = 'ci_session ' ;
164
-
165
- /**
166
- * --------------------------------------------------------------------------
167
- * Session Expiration
168
- * --------------------------------------------------------------------------
169
- *
170
- * The number of SECONDS you want the session to last.
171
- * Setting to 0 (zero) means expire when the browser is closed.
172
- *
173
- * @deprecated use Config\Session::$expiration instead.
174
- */
175
- public int $ sessionExpiration = 7200 ;
176
-
177
- /**
178
- * --------------------------------------------------------------------------
179
- * Session Save Path
180
- * --------------------------------------------------------------------------
181
- *
182
- * The location to save sessions to and is driver dependent.
183
- *
184
- * For the 'files' driver, it's a path to a writable directory.
185
- * WARNING: Only absolute paths are supported!
186
- *
187
- * For the 'database' driver, it's a table name.
188
- * Please read up the manual for the format with other session drivers.
189
- *
190
- * IMPORTANT: You are REQUIRED to set a valid save path!
191
- *
192
- * @deprecated use Config\Session::$savePath instead.
193
- */
194
- public string $ sessionSavePath = WRITEPATH . 'session ' ;
195
-
196
- /**
197
- * --------------------------------------------------------------------------
198
- * Session Match IP
199
- * --------------------------------------------------------------------------
200
- *
201
- * Whether to match the user's IP address when reading the session data.
202
- *
203
- * WARNING: If you're using the database driver, don't forget to update
204
- * your session table's PRIMARY KEY when changing this setting.
205
- *
206
- * @deprecated use Config\Session::$matchIP instead.
207
- */
208
- public bool $ sessionMatchIP = false ;
209
-
210
- /**
211
- * --------------------------------------------------------------------------
212
- * Session Time to Update
213
- * --------------------------------------------------------------------------
214
- *
215
- * How many seconds between CI regenerating the session ID.
216
- *
217
- * @deprecated use Config\Session::$timeToUpdate instead.
218
- */
219
- public int $ sessionTimeToUpdate = 300 ;
220
-
221
- /**
222
- * --------------------------------------------------------------------------
223
- * Session Regenerate Destroy
224
- * --------------------------------------------------------------------------
225
- *
226
- * Whether to destroy session data associated with the old session ID
227
- * when auto-regenerating the session ID. When set to FALSE, the data
228
- * will be later deleted by the garbage collector.
229
- *
230
- * @deprecated use Config\Session::$regenerateDestroy instead.
231
- */
232
- public bool $ sessionRegenerateDestroy = false ;
233
-
234
- /**
235
- * --------------------------------------------------------------------------
236
- * Session Database Group
237
- * --------------------------------------------------------------------------
238
- *
239
- * DB Group for the database session.
240
- *
241
- * @deprecated use Config\Session::$DBGroup instead.
242
- */
243
- public ?string $ sessionDBGroup = null ;
244
-
245
- /**
246
- * --------------------------------------------------------------------------
247
- * Cookie Prefix
248
- * --------------------------------------------------------------------------
249
- *
250
- * Set a cookie name prefix if you need to avoid collisions.
251
- *
252
- * @deprecated use Config\Cookie::$prefix property instead.
253
- */
254
- public string $ cookiePrefix = '' ;
255
-
256
- /**
257
- * --------------------------------------------------------------------------
258
- * Cookie Domain
259
- * --------------------------------------------------------------------------
260
- *
261
- * Set to `.your-domain.com` for site-wide cookies.
262
- *
263
- * @deprecated use Config\Cookie::$domain property instead.
264
- */
265
- public string $ cookieDomain = '' ;
266
-
267
- /**
268
- * --------------------------------------------------------------------------
269
- * Cookie Path
270
- * --------------------------------------------------------------------------
271
- *
272
- * Typically will be a forward slash.
273
- *
274
- * @deprecated use Config\Cookie::$path property instead.
275
- */
276
- public string $ cookiePath = '/ ' ;
277
-
278
- /**
279
- * --------------------------------------------------------------------------
280
- * Cookie Secure
281
- * --------------------------------------------------------------------------
282
- *
283
- * Cookie will only be set if a secure HTTPS connection exists.
284
- *
285
- * @deprecated use Config\Cookie::$secure property instead.
286
- */
287
- public bool $ cookieSecure = false ;
288
-
289
- /**
290
- * --------------------------------------------------------------------------
291
- * Cookie HttpOnly
292
- * --------------------------------------------------------------------------
293
- *
294
- * Cookie will only be accessible via HTTP(S) (no JavaScript).
295
- *
296
- * @deprecated use Config\Cookie::$httponly property instead.
297
- */
298
- public bool $ cookieHTTPOnly = true ;
299
-
300
- /**
301
- * --------------------------------------------------------------------------
302
- * Cookie SameSite
303
- * --------------------------------------------------------------------------
304
- *
305
- * Configure cookie SameSite setting. Allowed values are:
306
- * - None
307
- * - Lax
308
- * - Strict
309
- * - ''
310
- *
311
- * Alternatively, you can use the constant names:
312
- * - `Cookie::SAMESITE_NONE`
313
- * - `Cookie::SAMESITE_LAX`
314
- * - `Cookie::SAMESITE_STRICT`
315
- *
316
- * Defaults to `Lax` for compatibility with modern browsers. Setting `''`
317
- * (empty string) means default SameSite attribute set by browsers (`Lax`)
318
- * will be set on cookies. If set to `None`, `$cookieSecure` must also be set.
319
- *
320
- * @deprecated use Config\Cookie::$samesite property instead.
321
- */
322
- public ?string $ cookieSameSite = 'Lax ' ;
323
-
324
138
/**
325
139
* --------------------------------------------------------------------------
326
140
* Reverse Proxy IPs
@@ -344,91 +158,6 @@ class App extends BaseConfig
344
158
*/
345
159
public array $ proxyIPs = [];
346
160
347
- /**
348
- * --------------------------------------------------------------------------
349
- * CSRF Token Name
350
- * --------------------------------------------------------------------------
351
- *
352
- * The token name.
353
- *
354
- * @deprecated Use `Config\Security` $tokenName property instead of using this property.
355
- */
356
- public string $ CSRFTokenName = 'csrf_test_name ' ;
357
-
358
- /**
359
- * --------------------------------------------------------------------------
360
- * CSRF Header Name
361
- * --------------------------------------------------------------------------
362
- *
363
- * The header name.
364
- *
365
- * @deprecated Use `Config\Security` $headerName property instead of using this property.
366
- */
367
- public string $ CSRFHeaderName = 'X-CSRF-TOKEN ' ;
368
-
369
- /**
370
- * --------------------------------------------------------------------------
371
- * CSRF Cookie Name
372
- * --------------------------------------------------------------------------
373
- *
374
- * The cookie name.
375
- *
376
- * @deprecated Use `Config\Security` $cookieName property instead of using this property.
377
- */
378
- public string $ CSRFCookieName = 'csrf_cookie_name ' ;
379
-
380
- /**
381
- * --------------------------------------------------------------------------
382
- * CSRF Expire
383
- * --------------------------------------------------------------------------
384
- *
385
- * The number in seconds the token should expire.
386
- *
387
- * @deprecated Use `Config\Security` $expire property instead of using this property.
388
- */
389
- public int $ CSRFExpire = 7200 ;
390
-
391
- /**
392
- * --------------------------------------------------------------------------
393
- * CSRF Regenerate
394
- * --------------------------------------------------------------------------
395
- *
396
- * Regenerate token on every submission?
397
- *
398
- * @deprecated Use `Config\Security` $regenerate property instead of using this property.
399
- */
400
- public bool $ CSRFRegenerate = true ;
401
-
402
- /**
403
- * --------------------------------------------------------------------------
404
- * CSRF Redirect
405
- * --------------------------------------------------------------------------
406
- *
407
- * Redirect to previous page with error on failure?
408
- *
409
- * @deprecated Use `Config\Security` $redirect property instead of using this property.
410
- */
411
- public bool $ CSRFRedirect = false ;
412
-
413
- /**
414
- * --------------------------------------------------------------------------
415
- * CSRF SameSite
416
- * --------------------------------------------------------------------------
417
- *
418
- * Setting for CSRF SameSite cookie token. Allowed values are:
419
- * - None
420
- * - Lax
421
- * - Strict
422
- * - ''
423
- *
424
- * Defaults to `Lax` as recommended in this link:
425
- *
426
- * @see https://portswigger.net/web-security/csrf/samesite-cookies
427
- *
428
- * @deprecated `Config\Cookie` $samesite property is used.
429
- */
430
- public string $ CSRFSameSite = 'Lax ' ;
431
-
432
161
/**
433
162
* --------------------------------------------------------------------------
434
163
* Content Security Policy
0 commit comments