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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can't write cookie to Hard Drive in Intranet Zone

Status
Not open for further replies.

reisende

Programmer
Mar 16, 2004
74
US
Hello everybody.

This may be more of an IE than an ASP thing, but I'm hoping someone has a suggestion.

I've got a wierd little thing going on with our intranet site. When I browse to it by it writes the cookie fine. When I go to it by using the darn thing does nothing.

We've been using it in the Internet Zone for a while, but we're upgrading to a new web server and I'd like to start using the Intranet Zone instead.

I'll have to put the kaibosh on that if I can't get the cookie to write.

It's nothing major, but if anybody knows a setting or something in IE, please let me know.

Thanks.
 
Set browser's cookie behavior:

Internet Explorer -> Tools -> Internet Options -> Privacy
 
Thanks for the reply Sheco, but as far as I can tell those settings are only for the Internet Zone.

I've tried entering as a managed site, but it won't accept that address since it isn't an Internet URL.

I've looked and I can't find any specific Intranet security or privacy settings. I would think that an Intranet Zone would be less restrictive as far as the privacy stuff, but for some reason I can't write a cookie at all.
 
Just to test it, make sure that you can't user a session variable either.
 
Yup, it does the same thing with session variables. It doesn't populate them or can't read them.

It only does this in Intranet Zone. Both cookies and session variables work fine in Internet Zone (with the IP in place of server name).
 
You can try:

Goto Internet Explorer / Tools / Internet Options / Security Tab

Select "Local Intranet" then select "Sites..."

Then click "Advanced..." and add your site (it will accept hostnames aswell as FQDN's)

You can also change the settings in the custom level section of the Security tab once you've selected the local intranet zone which sets your usual cookies/javascript/activex permissions etc.

This may not be it, but is a place to start. I've done this from IE6 so you may find slight differences in lower versions.

Hope this helps,
Damian

A smile is worth a thousand kind words. So smile, it's easy! :)
 
I don't think it's going to work, guys.

Oh well, it wasn't anything that needed to be done. If cookies didn't work in the Internet Zone then I'd be in trouble ;)

Thanks for your suggestions, though.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top