Hello
I get solution by set default remember 1
if ( Params::getParam('remember') == 1 ) {
//this include contains de osc_genRandomPassword function
require_once osc_lib_path() . 'osclass/helpers/hSecurity.php';
$secret = osc_genRandomPassword();
User::newInstance()->update(
array('s_secret' => $secret)
,array('pk_i_id' => $user['pk_i_id'])
);
Cookie::newInstance()->set_expires( osc_time_cookie() );
Cookie::newInstance()->push('oc_userId', $user['pk_i_id']);
Cookie::newInstance()->push('oc_userSecret', $secret);
Cookie::newInstance()->set();
}
Seems its working fine..