Article View: borland.public.cppbuilder.internet.socket
Article #3709TIdHTTPServer & Sessions w/Indy 8
From: McMazz
Date: Sun, 24 Jul 2005 16:05
Date: Sun, 24 Jul 2005 16:05
20 lines
1637 bytes
1637 bytes
Hi all,
i've some problem using session in TIdHTTPServer (inserted into a service).
At design time set Active property to false, and on ServiceExecute methos I
do this:
HTTPSock->DefaultPort = HTTPPort;
HTTPSock->AutoStartSession = true;
HTTPSock->SessionState = true;
HTTPSock->SessionTimeOut = 15*60*1000; // 15 minute
HTTPSock->Active = true;
This cause a EThread exception due to a missing thread (error #6).
I've checked setting any properties at design time, but same result.
The only way is setting SessionState to false, but in this mode sessions
don't work.
Anyone know some about this problem or know some example on using sessions?
TNX,
Stefano
Technical Details
Message-ID:
<42e3bd46$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.maxwell.syr.edu!feed5.newsreader.com!newsreader.com!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 11508e,6518d42721a4e93e,start X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit From: "McMazz" <mazzottiLO-TROVI-Anetsitech.com> Newsgroups: borland.public.cppbuilder.internet.socket Subject: TIdHTTPServer & Sessions w/Indy 8 Date: Sun, 24 Jul 2005 18:05:47 +0200 Lines: 22 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-RFC2646: Format=Flowed; Original NNTP-Posting-Host: 151.37.229.133 Message-ID: <42e3bd46$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1122221382 151.37.229.133 (24 Jul 2005 09:09:42 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.maxwell.syr.edu!feed5.newsreader.com!newsreader.com!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail