Assume you roughly have a one-to-one between scripts and web pages.
How do you write a script to display its own web page or efficiently
invoke another script/page?  Redirect is slow.  Can you exec, i.e.
can a cgi script exec another in it's own place?

For example:
Suppose you write a "login" script/screen in a cgi file, to display
and verify (and possibly redisplay) a web page for login information.
On successful login, you want it to set some cookies and invoke
another script/screen.  A redirect seems extremely inefficient.

I find this situation pops up all over the place.  How do other
people deal with this?  Just redirect?

Reply via email to