comparison vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php @ 16:c2387f117808

Routine composer update
author Chris Cannam
date Tue, 10 Jul 2018 15:07:59 +0100
parents 1fec387a4317
children 129ea1e6d783
comparison
equal deleted inserted replaced
15:e200cb7efeb3 16:c2387f117808
347 if (headers_sent() || \PHP_SESSION_ACTIVE === session_status()) { 347 if (headers_sent() || \PHP_SESSION_ACTIVE === session_status()) {
348 return; 348 return;
349 } 349 }
350 350
351 $validOptions = array_flip(array( 351 $validOptions = array_flip(array(
352 'cache_limiter', 'cache_expire', 'cookie_domain', 'cookie_httponly', 352 'cache_expire', 'cache_limiter', 'cookie_domain', 'cookie_httponly',
353 'cookie_lifetime', 'cookie_path', 'cookie_secure', 353 'cookie_lifetime', 'cookie_path', 'cookie_secure',
354 'entropy_file', 'entropy_length', 'gc_divisor', 354 'entropy_file', 'entropy_length', 'gc_divisor',
355 'gc_maxlifetime', 'gc_probability', 'hash_bits_per_character', 355 'gc_maxlifetime', 'gc_probability', 'hash_bits_per_character',
356 'hash_function', 'lazy_write', 'name', 'referer_check', 356 'hash_function', 'lazy_write', 'name', 'referer_check',
357 'serialize_handler', 'use_strict_mode', 'use_cookies', 357 'serialize_handler', 'use_strict_mode', 'use_cookies',
358 'use_only_cookies', 'use_trans_sid', 'upload_progress.enabled', 358 'use_only_cookies', 'use_trans_sid', 'upload_progress.enabled',
359 'upload_progress.cleanup', 'upload_progress.prefix', 'upload_progress.name', 359 'upload_progress.cleanup', 'upload_progress.prefix', 'upload_progress.name',
360 'upload_progress.freq', 'upload_progress.min-freq', 'url_rewriter.tags', 360 'upload_progress.freq', 'upload_progress.min_freq', 'url_rewriter.tags',
361 'sid_length', 'sid_bits_per_character', 'trans_sid_hosts', 'trans_sid_tags', 361 'sid_length', 'sid_bits_per_character', 'trans_sid_hosts', 'trans_sid_tags',
362 )); 362 ));
363 363
364 foreach ($options as $key => $value) { 364 foreach ($options as $key => $value) {
365 if (isset($validOptions[$key])) { 365 if (isset($validOptions[$key])) {
366 ini_set('session.'.$key, $value); 366 ini_set('url_rewriter.tags' !== $key ? 'session.'.$key : $key, $value);
367 } 367 }
368 } 368 }
369 } 369 }
370 370
371 /** 371 /**