• Post Reply Bookmark Topic Watch Topic
  • New Topic

Session variables  RSS feed

 
L. Riley
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there any special setup that is required for session variables in tomcat?
I have two jsp's. One jsp creates some session variables. One jsp displays session variables.
I run these on tomcat running standalone and they work correctly. If I run them on a server that is running tomcat with windows 2000 NT, they don't work.
Please, please...does anyone have any suggestions?
 
Tim Holloway
Bartender
Posts: 18531
61
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't know any reason why the OS should matter here. A more likely situation would be if your code didn't fall back to URL rewriting if the client has cookies disabled.
 
L. Riley
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well the interesting (or frustrating) thing here is that cookies aren't working either. The cookies are created, but when I try to display them on a page, nothing displays. I know my code is correct because it works when I run tomcat standalone. Please if you have any suggestions....
 
L. Riley
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have just realized that if I display the session id, every time I click refresh, I get a different session id. Perhaps this is why session variables aren't working....? What would cause an new session id to be assigned with every request?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!