File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

session value getting changed

Mrig Singh

Joined: Oct 18, 2012
Posts: 1
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)
I agree. Here's the link:
subject: session value getting changed
It's not a secret anymore!