hi sourav... in your case, usually i write a functions to handle the session manually. first, you have to initialize a variable ($maxtime <in second>) to store maximum time (in second) user can spend in the "administration" area. next, when user logging in, the system will create a session to store logged_in_time & last_interaction_time (default value is same as logged_in_time).. then every time user "enter" a page, the last_interaction_time will changed to the current time, and check how many second user spend on the site (logged_in_time - last_interaction_time = result_second). next check if $maxtime > result_second then all session destroyed and send the user to login page, elseif $maxtime < result_second then nothing happen, just write the time. -- Muhammad Rashid Babsail http://hammudi.com --- On Thu, 7/2/09, sourav <sghosh246@xxxxxxxxx> wrote: From: sourav <sghosh246@xxxxxxxxx> Subject: Urgent - Session To: php-objects@xxxxxxxxxxxxxxx Date: Thursday, July 2, 2009, 12:14 PM Hi, I have an interface in admin panel where after successful login, there is an interface for addition,deletion and modification of some records. However, my question is how can i change the session expiry time in my code? Though i have already changed session.gc_maxlifet ime directive in php.ini but that didn't help me. Any useful suggestion is highly appreciated. Regards, Sourav [Non-text portions of this message have been removed] [Non-text portions of this message have been removed]