Solved

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

Posted on 2012-03-29
18
1,873 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
  • 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
 

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
Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

 
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

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

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

If your system is showing symptoms of browser hijacks or 'google search redirects' check out my other article (http://rdsrc.us/u3GP7A) first and run the tool TDSSKiller (http://rdsrc.us/GDBBs4) to get rid of the infection. Once done, and if the …
When you start your Windows 10 PC and got an "Operating system not found" error or just saw  "Auto repair for startup" or a blinking cursor with black screen. A loop for Auto repair will start but fix nothing.  You will be panic as there are no back…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

920 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now