PHP Session expiring and system force logout -
when left system in idle mode( means inactive mode) , , when come access system after 1 or 2 hours, system reacts when use single window when generate recieppt through ajax , open receipt in window.popup window system logs out. , redirect login page because session expired in idle mode , if set session lifetime,
case '1': $_session['kid'] = $q4['id']; ini_set('session.gc_maxlifetime', 100*60*60); session_set_cookie_params(0,"/"); break;
plese ......
ini_set('session.gc_maxlifetime', ...)
should called before session_start()
Comments
Post a Comment