Skip to content

Instantly share code, notes, and snippets.

Created August 5, 2012 01:16
Show Gist options
  • Save anonymous/3260973 to your computer and use it in GitHub Desktop.
Save anonymous/3260973 to your computer and use it in GitHub Desktop.
Dump all Session Related PHP ini Values
<?php
$paths = array('session.save_path',
'session.name',
'session.save_handler',
'session.auto_start',
'session.gc_probability',
'session.gc_divisor',
'session.gc_maxlifetime',
'session.serialize_handler',
'session.cookie_lifetime',
'session.cookie_path',
'session.cookie_domain',
'session.cookie_secure',
'session.cookie_httponly',
'session.use_cookies',
'session.use_only_cookies',
'session.referer_check',
'session.entropy_file',
'session.entropy_length',
'session.cache_limiter',
'session.cache_expire',
'session.use_trans_sid',
'session.bug_compat_42',
'session.bug_compat_warn',
'session.hash_function',
'session.hash_bits_per_character',
'url_rewriter.tags',
'session.upload_progress.enabled',
'session.upload_progress.cleanup',
'session.upload_progress.prefix',
'session.upload_progress.name',
'session.upload_progress.freq',
'session.upload_progress.min_freq');
foreach($paths as $ini)
{
echo $ini . ' = ' . ini_get($ini) . "\n<br/>\n";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment