Board index » delphi » TIdHttpServer Session Control Don't Work

TIdHttpServer Session Control Don't Work


2006-03-04 11:39:56 AM
delphi56
Hi all.
Can someone show me a sample of Indy session management?
I am unsing Indy 9 and Delphi 7. Have searched a lot and nothing works.
Here go some tries:
- Dropped TIdHttpServer on a form. Activated the server and the
AutoStartSession property.
In OnCommandGet event, IdHTTPServer1.SessionList.ComponentCount is
zero and ARequestInfo.Session is always nil.
- Dropped TIdHttpServer on a form. Activated the server.
In OnCommandGet event, tried
IdHTTPServer1.CreateSession(AThread,AResponseInfo,ARequestInfo);
but ARequestInfo.Session is always nil.
Someone could help please?
Unfortunatly, any comment about the security of indy's session would be
appreciated too. I saw something about authentication on ARequestInfo
but have no ideia of using.
Thanks.
 
 

Re:TIdHttpServer Session Control Don't Work

Joe Aley writes:
Quote
Hi all.

Can someone show me a sample of Indy session management?
I am unsing Indy 9 and Delphi 7. Have searched a lot and nothing works.

Here go some tries:

- Dropped TIdHttpServer on a form. Activated the server and the
AutoStartSession property.
In OnCommandGet event, IdHTTPServer1.SessionList.ComponentCount is
zero and ARequestInfo.Session is always nil.

- Dropped TIdHttpServer on a form. Activated the server.
In OnCommandGet event, tried
IdHTTPServer1.CreateSession(AThread,AResponseInfo,ARequestInfo);
but ARequestInfo.Session is always nil.

Someone could help please?

Unfortunatly, any comment about the security of indy's session would be
appreciated too. I saw something about authentication on ARequestInfo
but have no ideia of using.

Thanks.
After downloading "Eliza Web" demo from
www.atozed.com/indy/Demos/9/index.en.iwp
i saw that indy only starts sessions if you set a session time out for
TIdHttpServer.
Hope it helps someone.