Need a VBscript to Override Automatic Cookie Handling and to Always Allow Session Cookies.

I'm hoping someone can help me as I'm in a bind and need a VBscript to Override Automatic Cookie Handling, accept first and third party cookies, and finally to always allow session cookies. I found the registry setting to Override Automatic Cookie Handling but can't find the registry entry to Always Allow Session Cookies. Please help. Thanks.
mcpp661Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

RobSampsonCommented:
Hi, the session cookies are to do with Zones.  The settings are described here:
http://support.microsoft.com/?kbid=182569

Regards,

Rob.
0
mcpp661Author Commented:
There must be something I'm missing then. When I put the value of 1A03 set to zero in the appropriate key the setting is still not check marked. Am I using the wrong value? Also, to me it seems as though the "Always Allow Session Cookies" setting under the Privacy tab is zone independent whereas what's in that link is zone dependent. Just to be clear, here's a screenshot of what I'm looking for.
 Always Allow Session Cookies
0
RobSampsonCommented:
What OS and IE version are you using?  I'll have a look into it.
0
Introducing Cloud Class® training courses

Tech changes fast. You can learn faster. That’s why we’re bringing professional training courses to Experts Exchange. With a subscription, you can access all the Cloud Class® courses to expand your education, prep for certifications, and get top-notch instructions.

mcpp661Author Commented:
Windows XP and a mixture of IE 7 and IE 8, soon to be all IE 8. Thanks man, I've been searching for a solution all day. Seems like something like that should be so easy to find in the Registry, can't understand where I'm going wrong. Thanks, need all the help I can get on this one.
0
RobSampsonCommented:
Hi, so I've looked into it, and it looks like when you change that in the GUI, it modifies these three values:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\{AEBA21FA-782A-4A90-978D-B72164C80120}
(for First Party Cookie configuration)
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\{A8A88C49-5EB2-4990-A1A2-0876022C854F}
(for Third Part Cookie configuration)
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3\1A10

It's probably easiest that you export the number 3 zone, then modify the exported registry file and take out all of the other settings that are not listed above.  Then, with vbscript, just run

Set objShell = CreateObject("WScript.Shell")
objShell.Run "regedit /s ""\\server\share\PrivacySettings.reg""", 1, False

This might give you some more info as well:
http://support.microsoft.com/kb/301689

Regards,

Rob.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
mcpp661Author Commented:
Damn you're good! I'm going to give that a shot tomorrow. Did you use a tool to figure out which keys and values were changed? Thanks, I'll let you know how it goes.
0
RobSampsonCommented:
Yes, I used SysInternals (now Microsoft) tools called Process Monitor (ProcMon.exe) and filtered the output by the registry path.  I use it quite often when I don't quite know what's happening.

Rob.
0
mcpp661Author Commented:
I didn't know that ProcMon could do that........thanks for teaching me something.
0
mcpp661Author Commented:
Oh wait, for some reason I confused that with Process Explorer. I've never used Process Monitor.
0
RobSampsonCommented:
Oh yeah, it's a slightly different tool, but along the same lines.  Check out Process Monitor, it can be very handy!

Rob.
0
mcpp661Author Commented:
You know what Rob, after I get this question squared away tomorrow (and award you the points) I think I'm going to post another question asking you exactly how you used this tool to come up with those 3 registry values. It'll be worth 500 points to you. I could see that knowledge as being very useful. Thanks man.
0
RobSampsonCommented:
You can if you like.  Post a "related question" after this one is closed, and I can step through the process for you.

Rob.
0
mcpp661Author Commented:
Rob, that worked! Thank you sir! One question, I think there are group policies in place that may prevent the users from editing the registry via regedit. If I'm correct then using the VBscript above won't work. How would I use VBscript to edit a binary value in the registry directly? I'm going to close this and award the points now. If you want, perhaps I can make that a related question worth 500 points? Let me know please. Thanks.
0
RobSampsonCommented:
Yes, you can write binary values using the SetBinaryValue method:
http://msdn.microsoft.com/en-us/library/windows/desktop/aa393286(v=vs.85).aspx

You can post a related question if you like, and I'll work out how to write that binary data.

Regards,

Rob.
0
mcpp661Author Commented:
Yeah, I think I'm going to do that on Monday. I'll post two related questions. One to detail how to use Process Monitor the way you did to find these keys, and other to how to do this without using Regedit. Now I have to figure out how to post a "related question". I'll figure it out and let you know when the questions are posted. Thanks man.
0
RobSampsonCommented:
OK, I'm not actually sure how to post a related question anymore, since the layout change.  There used to be a "related question" link just above the "Post a comment" box.  Just start a new question, and post the link to it here, and I'll follow it up.

Regards,

Rob.
0
mcpp661Author Commented:
Sounds good man......I'll do it in a couple of days. Many thanks!
0
mcpp661Author Commented:
Rob, I created two new questions worth 500 points each. Please take a look and see if you can help me with them. Thanks, I appreciate it.

http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/Windows/XP/Q_27659312.html

http://www.experts-exchange.com/Programming/Languages/Visual_Basic/VB_Script/Q_27659314.html
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
VB Script

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.