Thread View: borland.public.cppbuilder.internet.socket
3 messages
3 total messages
Started by Fabi�n
Tue, 17 Aug 2004 18:26
IdHTTPServer
Author: Fabi�n
Date: Tue, 17 Aug 2004 18:26
Date: Tue, 17 Aug 2004 18:26
9 lines
1218 bytes
1218 bytes
hi... I'm using the IdHTTPServer... Do you kno how to work with sessions. When i change the property SessionState to true, the applications trows an error "Tread Error: Controlador no v�lido (6)" If I set a SessionTimeOut interval to 0 it doesn't trows the exeption, but I think it doesn't works because the session start event doesnt't works. thanks
Re: IdHTTPServer
Author: Remy Lebeau (TeamB)
Date: Tue, 17 Aug 2004 18:40
Date: Tue, 17 Aug 2004 18:40
12 lines
1153 bytes
1153 bytes
"Fabi�n" <fabianfierro@hotmail.com> wrote in message news:41224dce$1@newsgroups.borland.com... > Do you kno how to work with sessions. When i change > the property SessionState to true, the applications trows > an error "Tread Error: Controlador no v�lido (6)" Please show your actual code. Gambit
Re: IdHTTPServer
Author: Fabi�n
Date: Thu, 19 Aug 2004 14:10
Date: Thu, 19 Aug 2004 14:10
44 lines
2198 bytes
2198 bytes
TForm1 *Form1;
//--------------------------------------------------------------------------
-
__fastcall TForm1::TForm1(TComponent* Owner)
: TForm(Owner)
{
}
//--------------------------------------------------------------------------
-
void __fastcall TForm1::IdHTTPServer1CommandGet(TIdPeerThread *AThread,
TIdHTTPRequestInfo *RequestInfo, TIdHTTPResponseInfo *ResponseInfo)
{
ResponseInfo->ContentText = "Hi";
IdHTTPServer1->CreateSession(ResponseInfo, RequestInfo);
}
//--------------------------------------------------------------------------
-
void __fastcall TForm1::FormActivate(TObject *Sender)
{
IdHTTPServer1->SessionState = true;
IdHTTPServer1->Active = true;
}
//--------------------------------------------------------------------------
-
"Remy Lebeau (TeamB)" <gambit47.no.spam@no.spam.yahoo.com> escribi� en el
mensaje news:41225135$1@newsgroups.borland.com...
>
> "Fabi�n" <fabianfierro@hotmail.com> wrote in message
> news:41224dce$1@newsgroups.borland.com...
>
> > Do you kno how to work with sessions. When i change
> > the property SessionState to true, the applications trows
> > an error "Tread Error: Controlador no v�lido (6)"
>
> Please show your actual code.
>
>
> 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