Re: Should i Synchronize Session.object code execution in OnCommadGet

Giganews Newsgroups
Subject: Re: Should i Synchronize Session.object code execution in OnCommadGet
Posted by:  Remy Lebeau \(Indy Team\) (no.spam@no.spam.com)
Date: Wed, 31 Oct 2007

"Ken Madsen" <kenh…@yahoo.dk> wrote in message
news:F931BF00563BE340kenh…@yahoo.dk...

> Is my implementation threadsafe

That depends on what TMySession.DoSomething() is actually doing.

> should i do something myself to be sure the clients sessions
> dont interfear with another

Sessions are already separated by TIdHTTPServer for you.  However, you have
to make sure that the code inside of DoSomething() does not interfer with
other instances of itself that may be running at the same time.  Again, that
depends on what operations you are actually performing to begin with.

Gambit

Replies

In response to

Should i Synchronize Session.object code execution in OnCommadGet posted by Ken Madsen on Wed, 31 Oct 2007