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
|