Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2009-05-11
2
Medium Priority
?
1,321 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 675 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Color can increase conversions, create feelings of warmth or even incite people to get behind a cause. If you want your website to really impact site visitors, then it is vital to consider the impact color has on them.
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
The viewer will learn how to count occurrences of each item in an array.
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.
Suggested Courses

610 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