Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Are cookies saved by IP or domain?

Status
Not open for further replies.

gareth7

Programmer
Oct 11, 2002
35
GB
I came across something unusual today when installing an intranet application for a client and wondered if anyone could explain it.

The server can be accessed using either it's IP address or machine name fine e.g. or
The problem comes when the application trys to set cookies (necessary for securing the app). The IP address works fine but the machine name version doesn't work. The cookies just don't appear to be there.

This set-up works fine for both methods on the test server in my office. Is there any setting my client must have that's causing the problem?

Any suggestions are welcome
 
Are they using a Proxy Server? I've seen similar behavior when Proxy's are involved.

Hope This Helps!

Ecobb
- I hate computers!
 
They could be using a proxy server. I'm not sure as I'm more a developer than a sys admin.

I installed cold fusion on it myself on a clean machine so it must be something in between.

I can work around it easily by using the IP address but it may cause problems in the future.

Thanks
 
if you log into tek tips from tek-tips.com, them go to you are not logged in, but got to tek-tips.com you still are. In that case, it would be by host name. I don't have anything set up to test it on my servers at the moment. Most cookie names are named using the host name typed in the browser, thats the actual place you are visiting, whether the IP or domain name was typed in.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top