Wrox Programmer Forums
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 20th, 2008, 08:02 AM
Registered User
 
Join Date: Feb 2008
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.

David


 
Old May 23rd, 2008, 02:53 PM
Friend of Wrox
 
Join Date: Nov 2004
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts
Default

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)





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





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