Morris.C said:
After UserID/Password authentication on a web page, does Apache store the
UserID in an environment variable that a Perl script could use?
Authentication how? There's a huge difference between the browser
supported authentication with the dialog box, typically based upon
..htaccess/.htpasswd, and something your people put together on a normal
webform.
I've used a Perl script called 'test-cgi', but the UserID that it always
returns is "apache".
That's not how it works. For the former, browser native authentication,
there is indeed some environment variable set with the user name, but
not with the password. Try printing out the contents of %ENV in a test
page.
For the latter, you're on your own. You'll have to use one of the
typical technologies to create and keep track of a so-called session,
using a session ID -- combined with some associated data on the server.
Typical ways to do this is in a cookie, clean and hasslefree, but the
user has to allow cookies from your site; a hidden form variable you
pass along in every form (troublesome: forget it once and your user
suddenly finds himself logged out), and putting it in the URL (Google
for PATH_INFO), but with the major disadvantage that bookmarks will hold
the session id.
Check the info on environment variables on this page:
<
http://hoohoo.ncsa.uiuc.edu/cgi/env.html>
HTH,
Bart.