celtcretlysem
New Member
When user is inactive for 3 hour ,How to set session expire. Surly this is duplicate question , But other threads are not worked for me, what i have tried upto now is ,\[code\]<code>define("APP_SESSION_TIMEOUT","10");session_cache_expire(APP_SESSION_TIMEOUT);session_set_cookie_params(APP_SESSION_TIMEOUT*60);ini_set("session.gc_maxlifetime", APP_SESSION_TIMEOUT * 60);</code>\[/code\]// Not This code is in my config.phpam not find, success on my above code .. any tips,i maked any mistake in my code,Hi am not sure, my code is correct,but still i have a problem ,am getting confussion,click heremy requirement is when system is active for 3 hours , then login automatically goes to logout,(ie is session expire , when system is in active for 3hr)But my code , not goign to expire mode, i have tried somthing like ini_set('session.cookie_lifetime', 10800);ini_set('session.gc_maxlifetime', 10800);no luck still.....Am not sure, where is the exact mistake, but finaly,i fixed the problem last night,here is the code click here