🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.socket
Article #3154

Using cookies on an HTTP Server

#3154
From: noel
Date: Wed, 09 Nov 2005 01:23
17 lines
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
Technical Details
Message-ID: <43714f4e$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!gail.ripco.com!news-out.newsfeeds.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,97e3b6f88f8f41c4,start
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII
Date: Tue, 08 Nov 2005 20:23:01 -0500
From: noel <noel@teledata.qc.ca>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.internet.socket
Subject: Using cookies on an HTTP Server
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit
NNTP-Posting-Host: 207.96.139.72
Message-ID: <43714f4e$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1131499342 207.96.139.72 (8 Nov 2005 17:22:22 -0700)
Lines: 17
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!gail.ripco.com!news-out.newsfeeds.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail