Forum Moderators: open
If you try this address it should work. 127.0.0.1 is your computer.
[edited by: dcheney at 6:04 pm (utc) on July 14, 2002]
[cis.ohio-state.edu...]
Perhaps later version of Microsoft apps ignore the RFC. That would make me mad. Why can't Microsoft follow the RFCs. The reason for this RFC was security. By the breaking the RFC guidelines they introduce security issues.
127.0.0.1 localhost
It is this line that makes the mapping between the domain "localhost" and the 127.0.0.1 IP address, which is the loopback IP address.
So all you have to do is add another line:
127.0.0.1 www.domain.com
This will map www.domain.com back to the local machine as well. Of course, use your domain, not domain.com. I use this all the time. It essentially acts as DNS (Domain Name Service) for the local machine.
[edited by: Xoc at 7:52 pm (utc) on July 15, 2002]
>>> Is it a Windows thing? Yep!
>>> If you try this address it should work. 127.0.0.1 is your computer. Will try it
>>> Are you using MSIE5/6 and ISS5? I'm using IIS5 with the browsers Netscape 6.2, Opera 6.03 (latest one), MSIE 6 and MSIE 7ALPHA (a very poor looking browser. I'm hoping they scrap the project and conserntrate on getting IE6 working).
Xoc, Where on earth do you get all this knowledge from? I'll give you idea a go.
I'll be busy tomorrow night trying to get this working.
Thanks again.
Chris.
After you have the line in there, cookies should work fine since you are now working with a third level domain.
I found this by searching on the Microsoft web site when I was trying to figure out how to test web sites. I found this article [support.microsoft.com]. The Microsoft web site is an amazing source of knowledge, and I always search there when I have a question about how to do something with a a Microsoft product. After that, I try the Google Microsoft Search [google.com], which expands the search to the entire web. Of course, coming here is another solution.
Response.Cookies("VisitedBefore").Value = "Confirmed"Dim VisitedBefore As String
If Request.Cookies("VisitedBefore") Is Nothing Then
VisitedBefore = "No"
ElseIf Request.Cookies("VisitedBefore").Value = "Confirmed" Then
VisitedBefore = "Yes"
Else
VisitedBefore = "Error"
End IfResponse.Write(VisitedBefore)
I get the Yes response.
If I then remove the line which creates the cookie I get the no response dispite the fact that I haven't deleted my cookies and it should be there from the last run of the code.
Chris.
Added:
Your may try something like this to set the expiry date of the cookie:
Response.Cookies("VisitedBefore").Value = "Confirmed"
Response.Cookies("VisitedBefore").Expires=Date()+5
What I do, is keep two sets of hosts files. One hosts file uses all my online sites mapped to local hosts/ips. The other hosts file is the stock file I use for net surfing.
I use a batch file to copy either hosts file to the live "hosts" file in \windows. By then making an icon to the batch files, I can toggle in/out the mode I'm in.
Unfortunatly, this only works with Opera and Mozila. IE caches dns info for a very long time and you either have to reboot with IE, or crash (task list kill) and restart explorer. (any way of nuking IE's resolved dns info?). Another way, is to flip on a proxy serve and back - that reresolves ips<->domains from the hosts file.