Sign in to follow this  

[web] Log in System with CGI can it happen?

This topic is 4103 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Absolutely, there's no reason why a CGI application cannot have a login.

I'm not totally sure about HTTP authentication though; some web servers won't pass authentication headers into CGI for security reasons.

But forms based / cookies etc should be no problem.

Mark

Share this post


Link to post
Share on other sites
CGI == Common Gateway Interface. It's a standard way of passing web requests to external programs and the output back again. CGI can be used by a variety of compiled and scripting languages, though it's most often Perl. PHP doesn't need CGI since it can talk to the webserver (usually Apache) directly, therefor doing away with some of the limitations of CGI.

Share this post


Link to post
Share on other sites
And Perl doesn't need CGI either, when you use mod_perl (on Apache) or FastCGI (on some others too) - the choices of language (Perl vs PHP vs Python vs Ruby, etc) and web server integration (CGI vs mod_* vs FastCGI) are mostly independent. And the latter choice is often easy to change - I'm not sure about other languages, but at least in Perl you can fairly easily write programs that work under any of those system since they all offer the same interface, and so you can do development with plain CGI (which makes it easy to change the code and not worry about infinite loops or leaking memory inside the web server process) and then move to mod_perl (which is faster) when it's stable and in use by other people, or move to FastCGI (which lets you do things like run the code on a different machine to the web server). I expect other languages allow the same kind of flexibility.

(So, CGI is not Perl and Perl is not CGI, and the same is true for most languages [smile])

Share this post


Link to post
Share on other sites

This topic is 4103 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this