Thread View: borland.public.cppbuilder.internet.socket
2 messages
2 total messages
Started by noel
Wed, 09 Nov 2005 01:23
Using cookies on an HTTP Server
Author: noel
Date: Wed, 09 Nov 2005 01:23
Date: Wed, 09 Nov 2005 01:23
17 lines
1420 bytes
1420 bytes
Hello All ! Using Borland C++ Builder 6 asnd Indy 9 ... Could someone briefly explain how can i set cookies on a HTTP client (browser) from the command handler of my HTTP server (using TIdHTTPServer) I see the TIdNetscapeCookie and TidCookieRFC2109 component ... but just don't really understand how to use it ... My goal is to set a cookie in the browser to record state infos etc ... and of course read them back when the user returns ... Many thanks for any help !!! No�l
Re: Using cookies on an HTTP Server
Author: Remy Lebeau (TeamB)
Date: Wed, 09 Nov 2005 03:54
Date: Wed, 09 Nov 2005 03:54
22 lines
1817 bytes
1817 bytes
"noel" <noel@teledata.qc.ca> wrote in message news:43714f4e$1@newsgroups.borland.com... > Could someone briefly explain how can i set cookies on > a HTTP client (browser) from the command handler of > my HTTP server (using TIdHTTPServer) The TIdHTTPResponseInfo object that is passed as a parameter to the OnCommandGet event haandler has a Cookies property. > I see the TIdNetscapeCookie and TidCookieRFC2109 component ... > but just don't really understand how to use it ... Did you read the documentation yet? Did you start with the TIdHTTPResponseInfo.Cookies property first instead of the individual components? The Cookies property is a collection. It has an Add() method which returns a TIdServerCookie object. You can then set that object's properties as desired. Gambit
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads