Irfan,
Please make sure you have the resource_limit=TRUE in the init.ora file for the changes to take effect.
Also, please check if the user you are trying to set the limit for is assigned to the default profile.
select profile from dba_users where username = 'TEST_USER';
PROFILE1
select profile, resource_name, limit
from dba_profiles where
profile='PROFILE1' and
resource_name ='IDLE_TIME'
3 If the user is asigned to a custom profile make sure the parameters for the custom profile are set acordingly. You should also look at the connect_time parameter (in the default or the custom profile whichever applies to you. Once the connection time is exceeded, the connection is terminated . )
And finally, please note that if the current session started before the parameter was set, it will not be taken into effect. The changes kick-in only from the next session after you make the changes.
Useful links.
http://www.adp-gmbh.ch/blog/2005/april/17.html
http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:453256655431
Thanks,
Rajesh