File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Other Java Products and Servers and the fly likes Resin session help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Java Products and Servers
Bookmark "Resin session help" Watch "Resin session help" New topic

Resin session help

Chad Zhou

Joined: Jul 24, 2004
Posts: 1
I am new to Resin. I have a web application which runs perfectly fine under Tomcat. Now I have to deploy it to the Resin server. The problem is that the session gets invalidated after user sign in. The following shows how I start a new session:

HttpSession session = req.getSession(true);
session.setAttribute("user", username);

I tried the following two ways and both of them lost the session info.
1. req.getRequestDispatcher(resp.encodeRedirectURL("/a.jsp")).forward(req,resp);
2. resp.sendRedirect(resp.encodeRedirectURL("a.jsp"));

My development environment is:
Windows 2000 Pro, Resin 2.1.14 (not work in Resin 3.0.8 either), MySQL
The Resin configuration looks like:

- Store sessions in the filesystem, so they can persist across
- servlet and class changes.
- Uncomment this during development.
- <file-store>WEB-INF/sessions</file-store>

Thanks in advance for your help.
I agree. Here's the link:
subject: Resin session help
It's not a secret anymore!