Re: [fpc-pascal] web app and application persistency

2011-08-03 Thread Marco van de Voort
In our previous episode, Andrew Brunner said: > The only thing I can think of would be packet inspection. Firewalls > included with Linux and Windows do not perform "deep" packet > inspection. They only allow/deny packets with specific ports over > either TCP or UDP. Usually they deny all ports

Re: [fpc-pascal] web app and application persistency

2011-08-03 Thread Jorge Aldo G. de F. Junior
You can use L7 filtering to select actions based on packet content. 2011/8/1 Andrew Brunner : > The only thing I can think of would be packet inspection.  Firewalls > included with Linux and Windows do not perform "deep" packet > inspection.  They only allow/deny packets with specific ports over >

Re: [fpc-pascal] web app and application persistency

2011-08-03 Thread Marcos Douglas
On Tue, Aug 2, 2011 at 6:51 PM, Graeme Geldenhuys wrote: > On 1 August 2011 16:32, Michael Van Canneyt wrote: >> >> If you really want the application running 100% of the time, there are only >> 2 options: >> - fastcgi with mod_fastcgi (NOT mod_fcgid) and ExternalFastCGIServer option. >> - Embedde

Re: [fpc-pascal] web app and application persistency

2011-08-03 Thread Graeme Geldenhuys
On 1 August 2011 16:32, Michael Van Canneyt wrote: > > If you really want the application running 100% of the time, there are only > 2 options: > - fastcgi with mod_fastcgi (NOT mod_fcgid) and ExternalFastCGIServer option. > - Embedded server (i;e. the application acts as a webserver). ...and opti

Re: [fpc-pascal] web app and application persistency

2011-08-01 Thread Andrew Brunner
The only thing I can think of would be packet inspection. Firewalls included with Linux and Windows do not perform "deep" packet inspection. They only allow/deny packets with specific ports over either TCP or UDP. Am I missing something? On Mon, Aug 1, 2011 at 12:31 PM, Michael Van Canneyt wro

Re: [fpc-pascal] web app and application persistency

2011-08-01 Thread Michael Van Canneyt
On Mon, 1 Aug 2011, Andrew Brunner wrote: On Mon, Aug 1, 2011 at 12:05 PM, Michael Van Canneyt wrote: ..But it is not always supported by the browser (as Marco indicated) and many firewalls simply don't agree with websockets. Can firewalls detect websockets over port 80? Any reason why

Re: [fpc-pascal] web app and application persistency

2011-08-01 Thread Andrew Brunner
On Mon, Aug 1, 2011 at 12:05 PM, Michael Van Canneyt wrote: > ..But it is not always supported by the browser (as Marco indicated) > and many firewalls simply don't agree with websockets. > Can firewalls detect websockets over port 80? ___ fpc-pascal m

Re: [fpc-pascal] web app and application persistency

2011-08-01 Thread Michael Van Canneyt
On Mon, 1 Aug 2011, Andrew Brunner wrote: On Mon, Aug 1, 2011 at 10:43 AM, Felipe Monteiro de Carvalho wrote: On Mon, Aug 1, 2011 at 5:23 PM, Andrew Brunner wrote: I agree with this one.  The only thing I could add would be AJAX & WebSockets for really advanced applications. Do WebSocket

Re: [fpc-pascal] web app and application persistency

2011-08-01 Thread Andrew Brunner
On Mon, Aug 1, 2011 at 10:43 AM, Felipe Monteiro de Carvalho wrote: > On Mon, Aug 1, 2011 at 5:23 PM, Andrew Brunner > wrote: >> I agree with this one.  The only thing I could add would be AJAX & >> WebSockets for really advanced applications. > > Do WebSockets allow to use TCP sockets in JavaScr

Re: [fpc-pascal] web app and application persistency

2011-08-01 Thread Marco van de Voort
In our previous episode, Andrew Brunner said: > > username/sessionID, then send an empty sessionID cookie (this will > > delete the sessionID cookie in client) > > I agree with this one. The only thing I could add would be AJAX & > WebSockets for really advanced applications. I thought websocket

Re: [fpc-pascal] web app and application persistency

2011-08-01 Thread Felipe Monteiro de Carvalho
On Mon, Aug 1, 2011 at 5:23 PM, Andrew Brunner wrote: > I agree with this one.  The only thing I could add would be AJAX & > WebSockets for really advanced applications. Do WebSockets allow to use TCP sockets in JavaScript or is it something else? -- Felipe Monteiro de Carvalho

RE : [fpc-pascal] web app and application persistency

2011-08-01 Thread Ludo Brands
> > 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 > >

Re: [fpc-pascal] web app and application persistency

2011-08-01 Thread Gustavo Enrique Jimenez
Hi: If you don't want to use cookies, you could write the sessionID in a hidden field in every html form (cgi app must write this hidden field in every form). Or, if you use ajax, you could attach the sessionID to every link (cgi app must write the sessionID parameter in every link). Gustavo

Re: [fpc-pascal] web app and application persistency

2011-08-01 Thread Andrew Brunner
On Mon, Aug 1, 2011 at 10:07 AM, Gustavo Enrique Jimenez wrote: > Hi: > >  I send cookies to the client. One of those cookies is a "sessionID", > a random number generated at login. >  My sequence is something like > > Login > Client: username/password ->Login html button > Server: run cgi app wit

Re: [fpc-pascal] web app and application persistency

2011-08-01 Thread Gustavo Enrique Jimenez
Hi: I send cookies to the client. One of those cookies is a "sessionID", a random number generated at login. My sequence is something like Login Client: username/password ->Login html button Server: run cgi app with username/password parameters -> ¿Valid user? -> generate sessionID, store in D

Re: [fpc-pascal] web app and application persistency

2011-08-01 Thread Marcos Douglas
On Mon, Aug 1, 2011 at 11:21 AM, Felipe Monteiro de Carvalho 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

Re: [fpc-pascal] web app and application persistency

2011-08-01 Thread Michael Van Canneyt
On Mon, 1 Aug 2011, Felipe Monteiro de Carvalho 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

[fpc-pascal] web app and application persistency

2011-08-01 Thread Felipe Monteiro de Carvalho
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