Thread View: borland.public.cppbuilder.internet.socket
2 messages
2 total messages
Started by McMazz
Sun, 24 Jul 2005 16:05
TIdHTTPServer & Sessions w/Indy 8
Author: 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
Re: TIdHTTPServer & Sessions w/Indy 8
Author: Remy Lebeau (TeamB)
Date: Mon, 25 Jul 2005 05:32
Date: Mon, 25 Jul 2005 05:32
13 lines
1314 bytes
1314 bytes
"McMazz" <mazzottiLO-TROVI-Anetsitech.com> wrote in message news:42e3bd46$1@newsgroups.borland.com... > on ServiceExecute methos I do this: That is not the correct thing to do. For starters, you shoud NOT be using the service's OnExecute event at all. That code belongs in the OnStart event instead. Second, Indy 8 is a very old version that is no longer supported. Please upgrade to either Indy 9 or 10 instead. 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