• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Session variables

 
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?
 
Saloon Keeper
Posts: 22267
151
Android Eclipse IDE Tomcat Server Redhat Java 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?
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    Bookmark Topic Watch Topic
  • New Topic