JSession filter ver. 1.2


This is a Java servlet filter (as per Servlet API 2.3). This filter lets you disable URL-encoded session identifiers. So URL-based sessions will be disabled and sessions will be supported through cookies only.

How to use it:

a) download jsessionflt.jar and save it in WEB-INF/lib

b) describe this filter in web.xml.
 


<filter>
  <filter-name>JSessionFilter</filter-name>
  <filter-class>com.cj.jsession.JSessionFilter</filter-class>
</filter>

c) describe a mapping for this filter in web.xml
 


<filter-mapping>
  <filter-name>JSessionFilter</filter-name>
  <url-pattern>*</url-pattern>
</filter-mapping>

in this case filter will be on for the each .jsp file for example.

Also you may exclude some of your files from the processing. Parameter exclude contains a commas separated list of files excluded from the processing. E.g.:


<filter>
  <filter-name>JSessionFilter</filter-name>
  <filter-class>com.cj.jsession.JSessionFilter</filter-class>
  <init-param>
    <param-name>exclude</param-name>
    <param-value>/main.jsp</param-value>
  </init-param>
</filter>

   For downloading:

    JSession filter:  jsessionflt.jar
 

 ©  Coldbeans     Comments?

See also JSOS - the largest collection of servlets and filters.

Also in JSOS: