aspose file tools*
The moose likes Other Java Products and Servers and the fly likes Session issue with Glassfish (Linux) 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 "Session issue with Glassfish (Linux)" Watch "Session issue with Glassfish (Linux)" New topic
Author

Session issue with Glassfish (Linux)

leo jacob
Greenhorn

Joined: May 02, 2011
Posts: 17
Hi,

I have deployed a web application in glassfish server in Linux environment. It is working fine in windows environment but in Linux it is showing some issues regarding Sessions. It is not capturing data in session. For example in my application user name is displaying as welcome User and here I am using session to store user name. It is appearing correct in windows OS but not showing in linux environment. I am not able to get the reason. Any help is highly appreciated.

My code related to session is as follows:

JSP:

import javax.servlet.http.HttpSession;

public class LoginAction extends ActionSupport implements SessionAware,
ServletRequestAware,ModelDriven {

private Map session;

public void setSession(Map session) {
this.session = session;

}

@SuppressWarnings("unchecked")
public Map<String, List<String>> getSession() {

return session;

}
session.get("userId");


}




 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Session issue with Glassfish (Linux)