Sunday, 15 July 2012

How to separate session timeout value in web.xml JSF -



How to separate session timeout value in web.xml JSF -

hi seek separate timeout session value in jsf 2.0.

the duration has different in mobile pages , web pages.

in web.xml there 1 session-timeout element. how can separate value in mobile , web pages.

thanks..

<filter> <filter-name>webtimeoutfilter</filter-name> <filter-class>filters.webtimeoutfilter</filter-class> </filter> <filter-mapping> <filter-name>webtimeoutfilter</filter-name> <url-pattern>/web/*</url-pattern> </filter-mapping> <filter> <filter-name>mobiletimeoutfilter</filter-name> <filter-class>filters.mobiletimeoutfilter</filter-class> </filter> <filter-mapping> <filter-name>mobiletimeoutfilter</filter-name> <url-pattern>/mobile/*</url-pattern> </filter-mapping> <session-config> <session-timeout>10</session-timeout> --> ***this value*** </session-config>

you'd have programmatically using httpsession#setmaxinactiveinterval(). can in servlet filter.

jsf timeout web.xml

No comments:

Post a Comment