Jump to content

Recommended Posts

hi,

the login system of my website some times does not allows my clients to login.after trying 6-7 times or may be more times the client can login.this is became a big headache for us.here iam giving my custom php.ini file.can you please help me to get out of it.sessions have been used for this.


thanks
mrjameer

custom php.ini
$sess_param = array();



$sess_param['errors_path'] = '../inc/';
$sess_param['errors_file'] = 'errsess';

$sess_param['default_lang'] = 'en';

$sess_param['current_lang'] = IsSet($_SERVER['HTTP_ACCEPT_LANGUAGE']) ?
                      substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2) : 'en';

$sess_param['session_start'] = TRUE;

$sess_param['stop_on_error'] = TRUE;

$sess_param['error_color'] = 'RED';
$sess_param['error_size']  = '+0';

$sess_param['stop_on_warn'] = FALSE;

$sess_param['warn_color'] = 'BLUE';
$sess_param['warn_size']  = '+0';


$sess_param['detail_err_msgs'] = FALSE;

$sess_param['buffer'] = FALSE;


$sess_param['key_prefix'] = 'O9R^3mp#i|34';
$sess_param['key_suffix'] = '+t97!u0K-2L5';


$sess_param['confirm_pswd'] = '!*CONFIRMED*!';

$sess_param['encrypt'] = FALSE;



$sess_param['encrypt_cipher'] = (defined('MCRYPT_GOST')) ? MCRYPT_GOST : NULL;
$sess_param['encrypt_mode']  = (defined('MCRYPT_MODE_CFB')) ?
                                          MCRYPT_MODE_CFB    : NULL;


$sess_param['gc_del_locked'] = FALSE;

$sess_param['db_host'] = $connsqlhostname;      // Your host name

$sess_param['db_user'] = $connlogin;      // Your user name assigned

$sess_param['db_pswd'] = $connpassword;        // Your assigned password

$sess_param['db_name'] = $connbase;    // Your database name

$sess_param['db_persistent'] = FALSE;

$sess_param['db_resource'] = NULL;


$sess_param['tb_name']    = 'sessions';        // Session table name

$sess_param['tb_id_col']  = 'sess_id';          // Session ID key column name

$sess_param['tb_sl_col']  = 'sess_sec_level';  // Security level column name

$sess_param['tb_cr_col']  = 'sess_created';    // Session created column name

$sess_param['tb_ex_col']  = 'sess_expiry';      // Expiry column name

$sess_param['tb_to_col']  = 'sess_timeout';    // Session timeout column name

$sess_param['tb_lk_col']  = 'sess_locked';      // Session locked column name

$sess_param['tb_vl_col']  = 'sess_value';      // Session data column name

$sess_param['tb_iv_col']  = 'sess_enc_iv';      // Session encrypt IV col. name

$sess_param['tb_si_col']  = 'sess_sec_id';      // Session security ID column

$sess_param['tb_tr_col']  = 'sess_trace';      // Session trace column name

$sess_param['security_level'] = 128;            // Range 0-255


$sess_param['new_sid'] = FALSE;

$sess_param['sess_id'] = NULL;

$sess_param['sess_id_len'] = 32;


$sess_param['ie_fix'] = FALSE;


$sess_param['slash_anyway'] = TRUE;


$sess_param['strip_anyway'] = TRUE;


$sess_param['save_path'] = $connbase;      // Set to name of database

$sess_param['name'] = 'CSESSION';              // Assign your own session name

//$sess_param['auto_start'] = '1';                // 1 = auto start, 0 = off

//$sess_param['gc_probability'] = 10;            // Garbage Collection

//$sess_param['gc_divisor'] = 100;

//$sess_param['gc_maxlifetime'] = 1440;

//$sess_param['timeout'] = $sess_param['gc_maxlifetime'] * 3;



//$sess_param['serialize_handler'] = 'php';

//$sess_param['cookie_lifetime'] = 0;

//$sess_param['cookie_path'] = '/';

//$sess_param['cookie_domain'] = '';

//$sess_param['cookie_secure'] = '0';

//$sess_param['use_cookies'] = 1;

//$sess_param['use_only_cookies'] = 0;      // For PHP version >= 4.3.0

//$sess_param['referer_check'] = '';

//$sess_param['entropy_file'] = '';

//$sess_param['entropy_length'] = 0;

//$sess_param['cache_limiter'] = 'nocache';

//$sess_param['cache_expire'] = 180;        // For PHP version >= 4.2.0

//$sess_param['bug_compat_42'] = 1;

//$sess_param['bug_compat_warn'] = 1;

//$sess_param['use_trans_sid'] = 1;

//$sess_param['hash_function'] = 0;

//$sess_param['hash_bits_per_character'] = 4;


//$sess_param['tags'] = 'a=href,area=href,frame=src,iframe=src,form=,fieldset=,input=src';
Link to comment
https://forums.phpfreaks.com/topic/27628-problems-with-custom-phpini/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.