Solved

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

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

Accepted Solution

by:
shalomc earned 225 total points
Comment Utility
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
Comment Utility
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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Do you come here a lot? Are you lazy like me and don't want to go through the "trouble" of having to click your Dock's Safari icon and then having to click your Experts Exchange Favorites bookmark to get here? Well then this article is for you.
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.
This Micro Tutorial will demonstrate how to add subdomains to your content reports. This can be very importing in having a site with multiple subdomains.

728 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now