Writing and Retrieving Cookies...

  • Thread starter Thread starter SamG
  • Start date Start date
S

SamG

Hello,
Does anyone know how I can Write a Cookie and then later
retrieve it...? Also, Is it possible to write attributes
and corresponding values to the cookie file.Needless to
say would require this in .Net (VB.Net or C#)...

A sample code or an article on how to accomplish this
would be very much appreciated...

Thanks,
SamG.
 
Sam -

Check out these topics on reading and writing cookies:


Code: Writing a Cookie (Visual Basic)
http://msdn.microsoft.com/library/en-us/dv_vbCode/html/vbtskcodeexamplewriti
ngcookie.asp

Code: Reading a Cookie (Visual Basic)
http://msdn.microsoft.com/library/en-us/dv_vbCode/html/vbtskcodeexamplereadi
ngcookie.asp



hope that helps

Steve Stein
VB Team

This posting is provided "AS IS" with no warranties and confers no rights.

--------------------
| Content-Class: urn:content-classes:message
| From: "SamG" <[email protected]>
| Sender: "SamG" <[email protected]>
| Subject: Writing and Retrieving Cookies...
| Date: Mon, 12 Jan 2004 06:04:36 -0800
| Lines: 11
| Message-ID: <[email protected]>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="iso-8859-1"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| X-MIMEOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
| Thread-Index: AcPZFQLD/EZJ7uJKS1yoCa/fz9QZLg==
| Newsgroups: microsoft.public.dotnet.languages.vb
| Path: cpmsftngxa07.phx.gbl
| Xref: cpmsftngxa07.phx.gbl microsoft.public.dotnet.languages.vb:172067
| NNTP-Posting-Host: tk2msftngxa13.phx.gbl 10.40.1.165
| X-Tomcat-NG: microsoft.public.dotnet.languages.vb
|
| Hello,
| Does anyone know how I can Write a Cookie and then later
| retrieve it...? Also, Is it possible to write attributes
| and corresponding values to the cookie file.Needless to
| say would require this in .Net (VB.Net or C#)...
|
| A sample code or an article on how to accomplish this
| would be very much appreciated...
|
| Thanks,
| SamG.
|
 
Back
Top