如果用户禁用浏览器cookie,关于存储session操作JFinal有没有好的解决方案。url重写,jsp好操作。我用的是 Template Engine(对深入用法不熟悉,不知道解决方案) @Jfinal
public class SessionIdHandler extends Handler {
public void handle(String target, HttpServletRequest request,
HttpServletResponse response, boolean[] isHandled) {
// L.cm update by 2014-08-06 更精准的判断
boolean isFromURL = request.isRequestedSessionIdFromURL();
if (isFromURL) {
target = target.substring(0, target.indexOf(';'));
}
next.handle(target, request, response, isHandled);
}
}
最后配置一下就好:
me.add(new SessionIdHandler());