|
-
Sep 2nd, 2006, 01:32 PM
#1
Thread Starter
New Member
MS Internet Controls and Cookie handling ??
Hi
I'm writing a small app to see IE's session cookies. This is done very easily by writing;
webbrowser1.document.cookie.
But how can I write back a new/altered or edited cookie ?
Or, simply just delete the session cookies all together ?
Please help
- Preben
-
Sep 2nd, 2006, 01:40 PM
#2
PowerPoster
Re: MS Internet Controls and Cookie handling ??
Might be of use: http://www.vbforums.com/showthread.php?t=406671
Search for "cookies"...it deletes all cookies indirectly rather than through webbrowser directly, but you could probably limit it to the cookies for the current URL...maybe?
Well, everyone else has been doing it :-)
Loading a file into memory QUICKLY - Using SendKeys - HyperLabel - A highly customisable label replacement - Using resource files/DLLs with VB - Adding GZip to your projects
Expect more to come in future
If I have helped you, RATE ME! :-)
I love helping noobs with their VB problems (probably because, as an amateur programmer, I am only slightly better at VB than them :-)) but if you SERIOUSLY want to get help for free from a community such as VBForums, you have to first have a grounding (basic knowledge) in VB6, otherwise you're way too much work to help...You've got to give a little if you want to get help from us, in other words!
And we DON'T do your homework. If your tutor doesn't teach you enough to help you make the project without his or her help, FIND A BETTER TUTOR or try reading books on programming! We are happy to help with minor things regarding the project, but you have to understand the rest of it if you want our help to be useful.
-
Sep 2nd, 2006, 01:49 PM
#3
PowerPoster
Re: MS Internet Controls and Cookie handling ??
Additionally, I found http://66.249.93.104/search?q=cache:...k&ct=clnk&cd=2 (yeah, it's google cache...not on the original site any more). Hope this helps, and if it works please tell me how as I wanna use it too :-)
Well, everyone else has been doing it :-)
Loading a file into memory QUICKLY - Using SendKeys - HyperLabel - A highly customisable label replacement - Using resource files/DLLs with VB - Adding GZip to your projects
Expect more to come in future
If I have helped you, RATE ME! :-)
I love helping noobs with their VB problems (probably because, as an amateur programmer, I am only slightly better at VB than them :-)) but if you SERIOUSLY want to get help for free from a community such as VBForums, you have to first have a grounding (basic knowledge) in VB6, otherwise you're way too much work to help...You've got to give a little if you want to get help from us, in other words!
And we DON'T do your homework. If your tutor doesn't teach you enough to help you make the project without his or her help, FIND A BETTER TUTOR or try reading books on programming! We are happy to help with minor things regarding the project, but you have to understand the rest of it if you want our help to be useful.
-
Sep 2nd, 2006, 02:39 PM
#4
PowerPoster
Re: MS Internet Controls and Cookie handling ??
One thing you can do (and I've tested this myself) is to do exactly as you've already tried...but set EACH cookie element individually:
let's say the cookie is "enc_pass=giormgioejwmgiojeriogm; enc_user=ijmiorjgm,qgioerj,giomj"
You would use:
WebBrowser1.Document.cookie = "enc_pass=deleted"
WebBrowser1.Document.cookie = "enc_user=deleted"
This would effectively delete the cookie (not erase it, I am sure there's another way to do it but this is a start)
You could then set another enc_pass and enc_user afterwards, or do something else that adds another cookie to collect :-)
Well, everyone else has been doing it :-)
Loading a file into memory QUICKLY - Using SendKeys - HyperLabel - A highly customisable label replacement - Using resource files/DLLs with VB - Adding GZip to your projects
Expect more to come in future
If I have helped you, RATE ME! :-)
I love helping noobs with their VB problems (probably because, as an amateur programmer, I am only slightly better at VB than them :-)) but if you SERIOUSLY want to get help for free from a community such as VBForums, you have to first have a grounding (basic knowledge) in VB6, otherwise you're way too much work to help...You've got to give a little if you want to get help from us, in other words!
And we DON'T do your homework. If your tutor doesn't teach you enough to help you make the project without his or her help, FIND A BETTER TUTOR or try reading books on programming! We are happy to help with minor things regarding the project, but you have to understand the rest of it if you want our help to be useful.
-
Sep 2nd, 2006, 04:39 PM
#5
Thread Starter
New Member
Re: MS Internet Controls and Cookie handling ??
Thank you man! I owe you one 
Worked like a charm!!!!!
THANKS!!!!
-
Sep 2nd, 2006, 04:46 PM
#6
PowerPoster
Re: MS Internet Controls and Cookie handling ??
I'm playing about with it myself at the moment...way I do it is I split the cookie data using ; as the split point and doing each element of the cookie data separately...dunno if that makes any difference, but it works for me :-)
Well, everyone else has been doing it :-)
Loading a file into memory QUICKLY - Using SendKeys - HyperLabel - A highly customisable label replacement - Using resource files/DLLs with VB - Adding GZip to your projects
Expect more to come in future
If I have helped you, RATE ME! :-)
I love helping noobs with their VB problems (probably because, as an amateur programmer, I am only slightly better at VB than them :-)) but if you SERIOUSLY want to get help for free from a community such as VBForums, you have to first have a grounding (basic knowledge) in VB6, otherwise you're way too much work to help...You've got to give a little if you want to get help from us, in other words!
And we DON'T do your homework. If your tutor doesn't teach you enough to help you make the project without his or her help, FIND A BETTER TUTOR or try reading books on programming! We are happy to help with minor things regarding the project, but you have to understand the rest of it if you want our help to be useful.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|