tags:

views:

17

answers:

0

Server:jboss 4.2.3. I have this task to implement. After user login, keep the existing session object but create new session id and set it to that object. I'm working on a Valve class [org.apache.catalina.valves.ValveBase] to acheive this. here is my code.

import org.apache.catalina.connector.Request; import org.apache.catalina.connector.Response; import org.apache.catalina.valves.ValveBase; import org.apache.catalina.valves.ValveBase; import org.apache.catalina.Manager;

{ Session session = request.getSessionInternal(true); Manager manager = session.getManager(); manager.changeSessionId(session); } the compilation fails as it could not find changeSessionId in Manager class. But i do see the api has the methold. here is the link http://tomcat.apache.org/tomcat-5.5-doc/catalina/docs/api/org/apache/catalina/Manager.html

I would really appreciate if anyone implemented this before and if you could provide some inputs.