On Mon, Aug 1, 2011 at 11:21 AM, Felipe Monteiro de Carvalho
<felipemonteiro.carva...@gmail.com> wrote:
>
> Hello,
>
> This is kind of a theorical question, but I though I'd ask before
> starting to code =)
>
> Basically I have a desktop app which I need to retrofit into a
> web-app. My idea is to cut it in a visual and a non-visual part and
> implement the visual part in HTML+JavaScript and keep the non-visual
> like it is now, in Pascal.
>
> So, the problem is that CGI apps are started for every request, correct?

Correct.

> So how should I proceed to obtain a application which will keep
> running for the entire session of a user? I don't want to simply save
> session info because the application is rather large, there are lots
> of things going on and it would be much easier for my coding if I
> could keep the program running on the web server ...
>
> Any ideas?

You MUST save the session. How the app knows about the user logged?
To keep the app running on the web server, read about FastCGI.

http://en.wikipedia.org/wiki/FastCGI
<your FPC trunk>\packages\fcl-web\src\
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to