Solved

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

Posted on 2012-03-29
18
1,985 Views
Last Modified: 2012-06-27
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.
0
Comment
Question by:mcpp661
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 10
  • 8
18 Comments
 
LVL 65

Expert Comment

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

Regards,

Rob.
0
 

Author Comment

by:mcpp661
ID: 37785258
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
 
LVL 65

Expert Comment

by:RobSampson
ID: 37785264
What OS and IE version are you using?  I'll have a look into it.
0
Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

 

Author Comment

by:mcpp661
ID: 37785270
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
 
LVL 65

Accepted Solution

by:
RobSampson earned 500 total points
ID: 37785519
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
 

Author Comment

by:mcpp661
ID: 37785525
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
 
LVL 65

Expert Comment

by:RobSampson
ID: 37785538
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
 

Author Comment

by:mcpp661
ID: 37785570
I didn't know that ProcMon could do that........thanks for teaching me something.
0
 

Author Comment

by:mcpp661
ID: 37785575
Oh wait, for some reason I confused that with Process Explorer. I've never used Process Monitor.
0
 
LVL 65

Expert Comment

by:RobSampson
ID: 37785577
Oh yeah, it's a slightly different tool, but along the same lines.  Check out Process Monitor, it can be very handy!

Rob.
0
 

Author Comment

by:mcpp661
ID: 37785588
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
 
LVL 65

Expert Comment

by:RobSampson
ID: 37785621
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
 

Author Comment

by:mcpp661
ID: 37787449
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
 
LVL 65

Expert Comment

by:RobSampson
ID: 37790594
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
 

Author Comment

by:mcpp661
ID: 37791080
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
 
LVL 65

Expert Comment

by:RobSampson
ID: 37792298
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
 

Author Comment

by:mcpp661
ID: 37792353
Sounds good man......I'll do it in a couple of days. Many thanks!
0
 

Author Comment

by:mcpp661
ID: 37798100
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

Featured Post

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article is the result of a quest to better understand Task Scheduler 2.0 and all the newer objects available in vbscript in this version over  the limited options we had scripting in Task Scheduler 1.0.  As I started my journey of knowledge I f…
Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

710 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question