session.putValue("userid",userid) --> how to expire after 40mins of no acti

Using the above session attribute, how do i expire it after 40 mins of no activity. Thanks adam
[129 byte] By [adamrau] at [2007-9-26 2:28:58]
# 1
session.setMaxInactiveInterval(2400)should do the trick. The interval specified is in seconds.
polly1 at 2007-6-29 9:45:28 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
THank you very much.
adamrau at 2007-6-29 9:45:28 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...