I just tested your code (with a minor change)
if(WM_acceptsCookies==false) {
alert('This course REQUIRES browser cookies to be enabled.\nPress OK and
then ENABLE cookies in your browser Internet Properties.');
} else {
alert('Cookies are fine');
}
On a development domain I have here... The code produced exactly the right
results in both browsers both with IP address and domain name set as the
url...
Is there anything between you and the site that could strip out javascript
on a domain by domain basis? Do you use something like MS ISA or other proxy
server? How about desktop security apps? Is there *anything* in them that
could be causing this? Also, check your security settings in your browsers
to see if JS is disable under certain circumstances...
Paul
-----Original Message-----
From: Adkins, Randy [mailto:[EMAIL PROTECTED]
Sent: Friday, 04 March 2005 18:21
To: CF-Community
Subject: RE: IIS Question (Any other ideas?)
When I use the IP Address for the site, cookies are set and the site works
as designed.
When I use the domain name, cookies are not set, you can still use the site
but the item that uses cookies to track your usage is not being set.
Shown below is the code used to test for cookies. (Again using the IP The
site works fine, but with the domain, the cookies will never get set).
// Initialize variables
var WM_acceptsCookies = false; //initialize booleon to test if
cookies r active on client machine
if(document.cookie == '') {
document.cookie = 'WM_acceptsCookies=yes';
// Try to set a cookie.
if(document.cookie.indexOf('WM_acceptsCookies=yes') != -1) {
WM_acceptsCookies = true;
}
// If it succeeds, set variable
} else {
// there was already a cookie
WM_acceptsCookies = true;
}
if(WM_acceptsCookies==false) {
alert('This course REQUIRES browser cookies to be enabled.\nPress OK and
then ENABLE cookies in your browser Internet Properties.'); }
-----Original Message-----
From: Paul Vernon [mailto:[EMAIL PROTECTED]
Sent: Friday, March 04, 2005 12:03 PM
To: CF-Community
Subject: RE: IIS Question (Any other ideas?)
I'm not sure that I followed correctly, does the site appear when you use
the domain name? I'll assume both and ask both sets of questions just in
case....
If the site is not working with the domain name...
What are the tracert results when you tracert to the domain?
You have checked and configured your host headers in IIS haven't you?
If if does...
Do you have any firewall software like ZoneAlarm/Norton etc that has privacy
settings built in? Have you checked them?
Can we see the code that sets the cookie or is it implicitly set by the
application?
Paul
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49
Message: http://www.houseoffusion.com/lists.cfm/link=i:5:149250
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/5
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:5
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.5
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54