Solved

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

Posted on 2009-05-11
2
1,309 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
[X]
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
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
Today it’s fairly well known that high-performing websites and applications bring in more visitors, higher SEO, and ultimately more sales. By the same token, downtime is disastrous for companies and can lead to major hits on a brand, reputation, an…
This tutorial demonstrates how to identify and create boundary or building outlines in Google Maps. In this example, I outline the boundaries of an enclosed skatepark within a community park.  Login to your Google Account, then  Google for "Google M…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

730 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