> I have been talking (lightly) with some others within our organization about
> different web technologies. I currently am a CGI.pm user and know it pretty
> well. But I am getting the impression that technologies such as JSP and ASP,
> are more efficient. In conversation, I believe I am hearing that those two

> technologies are more robust, because they do NOT start a new instance of my
> perl/cgi script each time the user submits back to the server? Is this
> correct? And if that is so, do those technologies allow the ability to hold

That's write. If you have 300 users on-line, 300 instances of PERL.EXE
would probably wreak havok on your webserver. There are ways around that
( PERLIS.DLL for example ).

> variables across sessions? I will try and better summarize that last
> sentence. Does it mean that one does NOT have to hold state (hold variables)
> with text files, dbms, etc? Because if that is the case, it appears that it
> would be much more efficient, and create a much faster, secure and better
> way than writing CGI type scripts. If I have my facts clear, could someone
> let me know, or tell me if I am missing something?

Yes. ASP, Cold Fusion, and the like keep track of a users session by
sending a string that identifies the user to the server:

 Set-Cookie: ASPSESSIONIDQGQQGQPV=HIHPCBODEAFBDPLCANFFFMPF; path=/

As a programmer, I can set and access these Session variables as:

 $Session->{loginname} = 'Joe User';

Without having to worry about opening files, dbms ( I had oringally
typed that as DMB...to much etree.org! ), etc. ASP and Cold Fusion are
integrated into the webserver such that those things are done
automatically. mod_perl offers simliar benefits.

Remember, use the right tool for the job.

- Ron
_______________________________________________
Perl-Win32-Web mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-web

Reply via email to