Ok, things are working quite smoothly, however, I'd really like to use
a single login script for multiple dependent cgi's.

For instance, I've got an admin and a reporting cgi that both rely on
the same login logic.  I'd like the login instance CGI to provide for
being called from either script after being redirected there due to
a lack of session, then be sent back to the originally requested
script.

Solutions:

1) use HTTP_REFERRER to set the redirect logic.  Unfortunately, I
suspect that this variable is set to the referrer of the redirecting
script and not the redirecting script itself.  In other words, I call
my my report.cgi from a directory index. report.cgi then redirects to
login.cgi due to lack of session.  The HTTP_REFERRER is then set to
the directory index, not report.cgi's URL.  More research required.


2) pass in HTTP variable with URL to which to be redirected, and pass
in a special value for session(success').

3) have a 3rd option which is the menu or routing option for all of
the scripts which depend on the login -- probably what I'll wind up
doing now.

Should I bother thinking of clever ways to redirect from the login
CGI?

-Eric.

-- 
Eric D. Berg <[EMAIL PROTECTED]>
Web Development / Solaris-Linux / Perl / SQL
http://nylug.org/~eberg
Tel. 646-418-3608

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to