33namespace Config ;
44
55use CodeIgniter \Config \BaseConfig ;
6- use DateTimeInterface ;
76
87class App extends BaseConfig
98{
@@ -242,6 +241,8 @@ class App extends BaseConfig
242241 * Set a cookie name prefix if you need to avoid collisions.
243242 *
244243 * @var string
244+ *
245+ * @deprecated use Config\Cookie::$prefix property instead.
245246 */
246247 public $ cookiePrefix = '' ;
247248
@@ -253,6 +254,8 @@ class App extends BaseConfig
253254 * Set to `.your-domain.com` for site-wide cookies.
254255 *
255256 * @var string
257+ *
258+ * @deprecated use Config\Cookie::$domain property instead.
256259 */
257260 public $ cookieDomain = '' ;
258261
@@ -264,6 +267,8 @@ class App extends BaseConfig
264267 * Typically will be a forward slash.
265268 *
266269 * @var string
270+ *
271+ * @deprecated use Config\Cookie::$path property instead.
267272 */
268273 public $ cookiePath = '/ ' ;
269274
@@ -275,6 +280,8 @@ class App extends BaseConfig
275280 * Cookie will only be set if a secure HTTPS connection exists.
276281 *
277282 * @var boolean
283+ *
284+ * @deprecated use Config\Cookie::$secure property instead.
278285 */
279286 public $ cookieSecure = false ;
280287
@@ -286,6 +293,8 @@ class App extends BaseConfig
286293 * Cookie will only be accessible via HTTP(S) (no JavaScript).
287294 *
288295 * @var boolean
296+ *
297+ * @deprecated use Config\Cookie::$httponly property instead.
289298 */
290299 public $ cookieHTTPOnly = true ;
291300
@@ -310,40 +319,11 @@ class App extends BaseConfig
310319 * will be set on cookies. If set to `None`, `$cookieSecure` must also be set.
311320 *
312321 * @var string
322+ *
323+ * @deprecated use Config\Cookie::$samesite property instead.
313324 */
314325 public $ cookieSameSite = 'Lax ' ;
315326
316- /**
317- * --------------------------------------------------------------------------
318- * Cookie Raw
319- * --------------------------------------------------------------------------
320- *
321- * This flag allows setting a "raw" cookie, i.e., its name and value are
322- * not URL encoded using `rawurlencode()`.
323- *
324- * If this is set to `true`, cookie names should be compliant of RFC 2616's
325- * list of allowed characters.
326- *
327- * @var boolean
328- *
329- * @see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie#attributes
330- * @see https://tools.ietf.org/html/rfc2616#section-2.2
331- */
332- public $ cookieRaw = false ;
333-
334- /**
335- * --------------------------------------------------------------------------
336- * Cookie Expires Timestamp
337- * --------------------------------------------------------------------------
338- *
339- * Default expires timestamp for cookies. Setting this to `0` will mean the
340- * cookie will not have the `Expires` attribute and will behave as a session
341- * cookie.
342- *
343- * @var DateTimeInterface|integer|string
344- */
345- public $ cookieExpires = 0 ;
346-
347327 /**
348328 * --------------------------------------------------------------------------
349329 * Reverse Proxy IPs
0 commit comments