PHP Function session code generator

function sess_code(){
$sess_code_v = time();
$sess_code_v = md5($sess_code_v);
$sess_code_v = str_replace(‘1′,’s’,$sess_code_v);
$sess_code_v = str_replace(‘2′,’h’,$sess_code_v);
$sess_code_v = str_replace(‘3′,’y’,$sess_code_v);
$sess_code_v = str_replace(‘4′,’j’,$sess_code_v);
$sess_code_v_Q_1 = md5($sess_code_v);
$sess_code_v_Q_1 = str_replace(‘1′,’s’,$sess_code_v_Q_1);
$sess_code_v_Q_1 = str_replace(‘2′,’h’,$sess_code_v_Q_1);
$sess_code_v_Q_1 = str_replace(‘3′,’y’,$sess_code_v_Q_1);
$sess_code_v_Q_1 = str_replace(‘4′,’j’,$sess_code_v_Q_1);
$sess_code_v = md5($sess_code_v).md5($sess_code_v_Q_1);
return $sess_code_v;
}

Leave a comment

* - Required fields