aspose file tools*
The moose likes Tomcat and the fly likes session value getting changed Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "session value getting changed" Watch "session value getting changed" New topic
Author

session value getting changed

Mrig Singh
Greenhorn

Joined: Oct 18, 2012
Posts: 1
Hi,
I am creating a session id (HttpSession session = request.getSession(true);) in login servlet and calling welcome page from there...printing session values in both the pages (<% System.out.println(session); %>.)

Though these session values comes same on my local machine and local tomcat server, when I run it on remote tomcat server I am getting two different session values. Is there any configuration setting in Tomcat which might affect this. I am using java1.6, Tomcat6.0.25, xml2.4.

(* I developed website on eclipse, Tomcat7. Which I changed to Tomcat6 due to remote server compatibility issues)
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: session value getting changed