My personal adventures in the quest for virtual perfectness.
By default your session times out from the UI (both the vsphere ui as the custom ui) after 30 minutes of inactivity. This can be annoying when you're running a big screen display showing your favorite widgets. Quite a lot of articles excists around this so more than enough resources can be found including an official KB from VMware: KB2015135.
However, I've found VMware replaces the web.xml with the default timeout during .PAK updates (like going from 5.6.0 -> 5.7.0 -> 5.7.1). Now I would not recommend replacing the altered previous web.xml since it can hold new settings. But I'm getting tired of getting into vi, edit two files, on all VCOPS servers and repeat that after every update. So here is a small script which does a 'sed' and replaces whatever value in the session-timeout to '-1'. It creates a backup, replaces the value and restarts the UI interface, both vsphere as custom.
# Set timeout by Bouke Groenescheij, www.jume.nl
sed -i.bak 's#<session-timeout>\([^<][^<]*\)</session-timeout>#<session-timeout>-1</session-timeout>#' /usr/lib/vmware-vcops/tomcat-enterprise/webapps/vcops-custom/WEB-INF/web.xml
sed -i.bak 's#<session-timeout>\([^<][^<]*\)</session-timeout>#<session-timeout>-1</session-timeout>#' /usr/lib/vmware-vcops/tomcat/webapps/vcops-vsphere/WEB-INF/web.xml