• Post Reply Bookmark Topic Watch Topic
  • New Topic

Cookies on Tomcat and Apache JServ  RSS feed

 
Sophia Oscario
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have Tomcat Server and Apache JServ running on my computer.
I have a script that can display all the cookies stored in browser and their value.
I run this script under Apache JServ, and here is the result :
Name Value Comment Max Age
JServSessionIdproduction yos8pqbhx1 null -1
Then I run this script under Tomcat, and the result is :
Name Value Comment Max Age
test testink null -1
name Oscario null -1
JServSessionIdproduction yos8pqbhx1 null -1
I wonder why the result is different ....
I set the cookie "test" and "name" from a script running under Tomcat before.
It seems that Apache JServ cannot read cookies that is set from Tomcat.
Anybody can explain me what happened ?
Thanks in advance
------------------
** Science belongs to the world **
 
Maky Chopra
Ranch Hand
Posts: 149
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A session identifier can only be recognized by the JSP container that issues it. If you have copies of your application installed in more than one machine in a web farm, there must be a way to guarantee that requests from the same user will be directed to the server that first handles the user's request
 
Mark Simms
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My take on this is that the other cookies were good for 1 session and now are no longer effective.......because those sessions have expired....
or those cookies were created under a different domain name.
 
Sophia Oscario
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have Tomcat and Apache JServ running under the same machine and my URL for my app under Tomcat is : http://localhost:8080/examples/Cookies
the URL for my app under Apache JServ : http://localhost/dev/servlets/Cookies
I don't think that the domain is different, is it ?
So can those two servlet engine running together on the same machine and passing cookies variable between two of them ?
Thanks...
------------------
** Science belongs to the world **
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!