Sorry I am replying late Geoff but I had to go home
last night....
Because I have written a CGI script that builds the
HTML dynamically on the ErrorDocument 403 I can get the header of the page the
was selected by doing:
my $header =
$r->header_in('Referer');
I just cannot get it to redirect. Well I can but
only with a:
return REDIRECT
which as you can imagine sends the whole thing
bananas........
Ian
----- Original Message -----
Sent: Thursday, October 05, 2000 1:30
PM
Subject: RE: Authentication and
Redirection
if you use a script/handler to create the login page,
and don't just serve up a static page, then you can use $r->prev->uri to
figure out what url triggered the 403, pass that to your authentication scheme
as a hidden field, and do whatever with it...
HTH
--Geoff
I have looked at the example and tried to
adapt, the problem is that I will be serving WAP phones as well as PC's
which don't like cookies.
Cheers
----- Original Message -----
Sent: Thursday, October 05, 2000
10:20 AM
Subject: RE: Authentication and
Redirection
the eagle book has an example of this in chapter
6 (cookie based access control)
I've used an init handler to glean
$r->prev->uri and use that in the handler that implements the login
page for Apache-AuthCookie, which works as well...
HTH
--Geoff
Can anyone help me I have been scratching
my head with this problem for a while and I can't figure a solution
out.
I have written a CGI script that is
executed from an ErrorDocument 403 so that when a user tries to access a
secure web page from the net they are bounced to a welcome page and
requested to log on. An Apache module that I have written is then
executed and the user is then authenticated against an oracle
database. All of this works BUT I would like to send the user back
to the page they selected originally if the authenticate correctly or
else just leave then at the welcome page.
So my question is how can you redirect
depending on the results of authentication.
Thanks
|