Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > VB How-To
Password Reminder
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
VB How-To Ask your "How do I do this with VB?" questions in this forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB How-To section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old May 20th, 2008, 08:02 AM
Registered User
Join Date: Feb 2008
Location: Chicago, IL, USA.
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Setting cookies in code

I'm working on an application that involves obtaining a value (through a logon procedure) from the server, then setting a cookie with that value. I'm using the WebBrowser control in the application, and for the life of me, I can't figure out how to properly set a cookie.

I can read cookies in from the site on request, but that's not the issue, nor is that how I obtained the value from the server. This is pure VB 2008 code, and frankly, I'm stymied.

Any help would be appreciated.


Reply With Quote
  #2 (permalink)  
Old May 23rd, 2008, 02:53 PM
Friend of Wrox
Join Date: Nov 2004
Location: Port Orchard, WA, USA.
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts

I haven't tried this, but here's my thought.

Cookies are (usually) text files with the name of the websites as the file name. You can create that through normal text routines.

As I understand it, if there is a file present where cookies are, with the name of the website that you are making a Request to, the cookie's contents are automatically sent along to the server as part of the request.

Perhaps if you describe the process step by step, more of a solution will become apparent.

Client running Webbrowser ctl requests . . . (and so on)
Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting and Retrieving Cookies ninel ASP.NET 2.0 Professional 0 April 13th, 2006 03:01 PM
Setting up the code download BenCh BOOK: ASP.NET Website Programming Problem-Design-Solution 1 June 11th, 2004 11:28 AM
Setting oncheckedchanged event in code behind file katsarosj VS.NET 2002/2003 4 May 12th, 2004 12:22 PM

All times are GMT -4. The time now is 07:13 PM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.