Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

why Cookie is not being sent to same domain on different port?

Posted on 2009-05-11
2
1,306 Views
Last Modified: 2013-12-08
I have a site that runs on apache port 80,

it runs like

http://my.domain.com/some/path/main/

that sets a cookie.

I'm retrieving the cookie in a java app, that runs in a tomcat, port 8080.
So i have
http://my.domain.com:8080/some/path/main/subpath

 However, the cookie is NOT being sent to teh java app by Firefox, chrome opera..only by IE 6.
Why is this?

I understand that cookies are shared in the same domain, Are ports taken into account?
Links to "official" documentation will be appreciated.
0
Comment
Question by:dhunter_12
2 Comments
 
LVL 33

Accepted Solution

by:
shalomc earned 225 total points
ID: 24365107
ports are part of the host value, so if you are not careful they can find their way to the cookie. for example, the javascript location.host value contains the port number.

get the TamperData addon to firefox and see what exactly passes between server and client.


0
 

Author Closing Comment

by:dhunter_12
ID: 31580353
After installing th eplugin, I realized that the cookie was Being sent to the server, and that it was an error in my code (which only fails when deployed to the server). My fault, but thanks for the plugin suggestion!
0

Featured Post

Webinar: Aligning, Automating, Winning

Join Dan Russo, Senior Manager of Operations Intelligence, for an in-depth discussion on how Dealertrack, leading provider of integrated digital solutions for the automotive industry, transformed their DevOps processes to increase collaboration and move with greater velocity.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
Any business that wants to seriously grow needs to keep the needs and desires of an international audience of their websites in mind. Making a website friendly to international users isn’t prohibitively expensive and can provide an incredible return…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
Google currently has a new report that is in beta and coming soon to Webmaster Tool accounts. This Micro Tutorial will highlight new features for Google Webmaster Tools.

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question