Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 11-17-2006, 09:22 PM   PM User | #1
mrjameer
Regular Coder

 
Join Date: Aug 2006
Posts: 133
Thanks: 0
Thanked 0 Times in 0 Posts
mrjameer is an unknown quantity at this point
problems with custom php.ini

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';
mrjameer is offline   Reply With Quote
Old 11-17-2006, 10:52 PM   PM User | #2
chump2877
Senior Coder

 
chump2877's Avatar
 
Join Date: Dec 2004
Location: the U.S. of freakin' A.
Posts: 2,530
Thanks: 15
Thanked 128 Times in 121 Posts
chump2877 is on a distinguished road
Possibly a point of interest: If this is a custom php.ini that you are using to override the php.ini on your server, and you are using a commercial server, you might check with your hosting provider to see if they allow custom php.ini's...
__________________
Regards, R.J.
chump2877 is offline   Reply With Quote
Old 11-19-2006, 03:25 PM   PM User | #3
CFMaBiSmAd
Senior Coder

 
CFMaBiSmAd's Avatar
 
Join Date: Oct 2006
Location: Denver, Colorado USA
Posts: 2,711
Thanks: 2
Thanked 251 Times in 243 Posts
CFMaBiSmAd is a jewel in the roughCFMaBiSmAd is a jewel in the roughCFMaBiSmAd is a jewel in the roughCFMaBiSmAd is a jewel in the rough
That is actually PHP code that is part of an application. It is not settings that are part of a php.ini or a .htaccess file that is used by PHP.
__________________
If you are learning PHP, developing PHP code, or debugging PHP code, do yourself a favor and check your web server log for errors and/or turn on full PHP error reporting in php.ini or in a .htaccess file to get PHP to help you.
CFMaBiSmAd is online now   Reply With Quote
Old 08-10-2009, 09:08 PM   PM User | #4
cozbaldwin
New Coder

 
Join Date: Feb 2005
Location: philadelphia
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
cozbaldwin is an unknown quantity at this point
Dreamhost custom php.ini

EDited: problem solved - host issue.

Last edited by cozbaldwin; 08-10-2009 at 11:42 PM..
cozbaldwin is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 02:42 AM.


Advertisement
Log in to turn off these ads.