Forum Moderators: open

Message Too Old, No Replies

I guess this is a super simple question...

Cant find cookie when coding under localhost (IIS).

         

San3D

8:46 am on Aug 24, 2004 (gmt 0)



Hi guys,

I guess this is a super simple question... but I just cant find the answer for this.

I am scripting in ASP running under IIS (localhost). I stored some information in the cookie but I cant find the cookie file (MIA).

(P.S I tried searching under "C:\Documents and Settings\sandra\Local Settings\Temp", "C:\Documents and Settings\sandra\Local Settings\Temporary Internet Files" and "C:\Documents and Settings\sandra\Cookies" but still cant find it.)

Can u tell me where can I find this cookie that I have stored the cookie information.

Thank you. Any help is greatly appreciated.

San

pete_m

9:31 am on Aug 24, 2004 (gmt 0)

10+ Year Member



Hi San3D

If I recall correctly, there's a bug in IE6 which means that persistent cookies aren't set if the hostname doesn't have a dot in it (like "localhost").

There are two solutions:
1 - Use a browser that doesn't have this bug (Firefox, Opera, etc)
2 - Change the hostname to something with a dot in it (like "localhost.local" for example). Using the loopback IP address (127.0.0.1) rather than "localhost" might also work. Or the local IP address of the machine, whatever it's set to.

Dreamquick

10:28 am on Aug 24, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If you set a cookie under ASP but don't give it an expiry date then it will act as a session cookie rather than a permanent one and so wont be saved to disk.

- Tony