So my machine name is "bap". I'm running jboss on port 80
If use the url http://bap then everything is ok.
However if I use the url http://localhost or http://127.0.0.1 or my real ip address or any other address I set up in my hosts file (I'm using using win2k) then any session information I create using
request.getSession().setAttribute("name", "value")