🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.web
Article #1189

TIdHTTPServer & Sessions w/Indy 8

#1189
From: McMazz
Date: Sun, 24 Jul 2005 16:06
20 lines
1610 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: <42e3bd8b$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news2.google.com!news.maxwell.syr.edu!news-out.nntp.be!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: feeec,2227673fb7d7c69f,start
X-Google-Attributes: gidfeeec,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "McMazz" <mazzottiLO-TROVI-Anetsitech.com>
Newsgroups: borland.public.cppbuilder.internet.web
Subject: TIdHTTPServer & Sessions w/Indy 8
Date: Sun, 24 Jul 2005 18:06:56 +0200
Lines: 23
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: <42e3bd8b$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1122221451 151.37.229.133 (24 Jul 2005 09:10:51 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news2.google.com!news.maxwell.syr.edu!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail