Solved

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

Posted on 2009-05-11
2
1,304 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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Suggested Solutions

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 …
There’s a good reason for why it’s called a homepage – it closely resembles that of a physical house and the only real difference is that it’s online. Your website’s homepage is where people come to visit you. It’s the family room of your website wh…
The viewer will learn how to dynamically set the form action using jQuery.
How to create a custom search shortcut to site-search Experts Exchange using Google in the Firefox browser. This eliminates the need to type out site:experts-exchange.com whenever you want to search the site. Launch your Bookmark Menu: Press 'Ctrl +…

773 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