You need to use parameter-maps for defining idle time outs.
e.g
parameter-map type connection My-TCP-map
set timeout inactivity 600
class-map match-all My-TCP-class
match port tcp any
policy-map multi-match My-TCP-policy
class My-TCP-class
connection advanced My-TCP-map
Then apply this to the vlan where its needed.
Syed